bsl::basic_stringstream

Standard bidirectional stream backed by a bsl::basic_string character sequence.

Synopsis

Declared in <bslstl_stringstream.h>

template<
    class CHAR_TYPE,
    class CHAR_TRAITS = char_traits<CHAR_TYPE>,
    class ALLOCATOR = allocator<CHAR_TYPE>>
class basic_stringstream
    : public std::basic_iostream<CHAR_TYPE, CHAR_TRAITS>

Description

This class implements a standard stream providing operations using bsl::basic_string for modifying or accessing the sequence of characters read from, or written to, the stream.

Base Classes

NameDescription
std::basic_iostream<CHAR_TYPE, CHAR_TRAITS>Template class basic_iostream

Type Aliases

NameDescription
__istream_type
__ostream_type
allocator_type This typedef is an alias to the (template parameter) ALLOCATOR.
char_type Alias for the character type of this stream.
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.

Member Functions

NameDescription
basic_stringstream [constructor]Constructors
operator= Move-assign from the specified rhs.
rdbuf Return the stream buffer used by this object.
str str overloads
swap Efficiently exchange the value of this object with other.
view Return a view of the internally buffered sequence of characters maintained by this stream object.

Using Declarations

NameDescription
operator= Assign from a base basic_iostream (inherited).
swap Exchange this stream with another basic_iostream (inherited).

Protected Member Functions

Name
operator=
swap

Non-Member Functions

NameDescription
swapEfficiently exchange the values of the specified a and b objects.