str overloads
Synopses
Declared in <bslstl_istringstream.h>
Return the internally buffered sequence of characters maintained by this stream, leaving the stream empty.
Return the internally buffered sequence of characters maintained by this stream object.
Same as the str overload taking const StringType&.
void
str(BloombergLP::bslmf::MovableRef<StringType> value);
Reset the internally buffered sequence of characters provided as input by this stream to the specified value. If value is passed by MovableRef, it is left in a valid but unspecified state.
void
str(StringType const& value);
Return a copy of the internally buffered sequence of characters maintained by this stream object in a basic_string that uses the specified allocator.
template<class SALLOC>
basic_string<CHAR_TYPE, CHAR_TRAITS, SALLOC>
str(SALLOC const& allocator) const
requires bsl::IsStdAllocator<SALLOC>::value;
Reset the internally buffered sequence of characters provided as input by this stream to the specified value (of a type convertible to basic_string_view<CHAR_TYPE, CHAR_TRAITS> but not to const CHAR_TYPE *).
template<class STRING_VIEW_LIKE_TYPE>
void
str(STRING_VIEW_LIKE_TYPE const& value);
Same as the str overload taking const StringType&.
template<class SALLOC>
void
str(basic_string<CHAR_TYPE, CHAR_TRAITS, SALLOC> const& value)
requires !bsl::is_same<ALLOCATOR, SALLOC>::value;
Created with MrDocs