Return a copy of the stream buffer using the specified allocator.
Synopsis
Declared in <bslstl_stringstream.h>
template<class SALLOC>
basic_string<CHAR_TYPE, CHAR_TRAITS, SALLOC>
str(SALLOC const& allocator) const
requires bsl::IsStdAllocator<SALLOC>::value;
Description
Return a copy of the internally buffered sequence of characters maintained by this stream object in a basic_string that uses the specified allocator.
Return Value
copy of the buffered character sequence
Parameters
Name |
Description |
allocator |
allocator for the returned string |
Created with MrDocs