Standard output stream that provides a bsl::basic_string of written characters.
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>
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.
| Name | Description |
|---|---|
std::basic_ostream<CHAR_TYPE, CHAR_TRAITS> | Template class basic_ostream. |
| Name | Description |
|---|---|
sentry | Prefixed output operations sentry type for this stream. |
| Name | Description |
|---|---|
allocator_type | This typedef is an alias to the (template parameter) ALLOCATOR. |
char_type | This typedef is an alias to the (template parameter) CHAR_TYPE. |
int_type | This typedef is an alias to traits_type::int_type. |
off_type | This typedef is an alias to traits_type::off_type. |
pos_type | This typedef is an alias to traits_type::pos_type. |
traits_type | This typedef is an alias to the (template parameter) CHAR_TRAITS. |
| Name | Description |
|---|---|
basic_ostringstream [constructor] | Constructors |
operator= | Assignment operators |
__put_num | Format and insert a numeric value into the stream. |
__put_num_integer_promote | Format and insert an integer-promoted numeric value. |
flush | Flush the stream buffer. |
get_allocator | Return the allocator used by the underlying buffer to supply memory. |
put | Insert a single character into the stream. |
rdbuf | Return an address providing modifiable access to the basic_stringbuf object that is internally used by this string stream to buffer unformatted characters. |
seekp | seekp overloads |
str | str overloads |
swap | swap overloads |
tellp | Return the current put position in the output sequence. |
view | Return a view of the internally buffered sequence of characters maintained by this stream object. |
write | Write a block of characters to the stream. |
operator<< | Left shift operators |
| Name | Description |
|---|---|
swap | Efficiently exchange the values of the specified a and b objects. |