Standard output stream that provides a bsl::basic_string of written characters.
Synopsis
Declared in <bslstl_ostringstream.h>
template<
class CHAR_TYPE,
class CHAR_TRAITS = char_traits<CHAR_TYPE>,
class ALLOCATOR = allocator<CHAR_TYPE>>
class basic_ostringstream
: public std::basic_ostream<CHAR_TYPE, CHAR_TRAITS>
Description
This class implements a standard output stream that provides an accessor for obtaining a bsl::basic_string containing the sequence of characters that have been written to the stream.
Base Classes
Name |
Description |
|
Template class basic_ostream. |
Types
Name |
Description |
Prefixed output operations sentry type for this stream. |
Type Aliases
Name |
Description |
This |
|
This |
|
This |
|
This |
|
This |
|
This |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
Format and insert a numeric value into the stream. |
|
|
Format and insert an integer‐promoted numeric value. |
Flush the stream buffer. |
|
Return the allocator used by the underlying buffer to supply memory. |
|
Insert a single character into the stream. |
|
Return an address providing modifiable access to the |
|
|
|
|
|
|
|
Return the current put position in the output sequence. |
|
Return a view of the internally buffered sequence of characters maintained by this stream object. |
|
Write a block of characters to the stream. |
|
Left shift operators |