bsl::basic_osyncstream::basic_osyncstream

Constructors

Synopses

Declared in <bslstl_osyncstream.h>

Create a basic_osyncstream object by moving the contents of the specified original object.

basic_osyncstream(basic_osyncstream&& original) noexcept;
» more...

Create a basic_osycnstream object that will forward stream output to rdbuf of the specified stream. Optionally specify an allocator used to supply memory. If allocator is not supplied, a default-constructed object of the (template parameter) ALLOCATOR type is used. If the ALLOCATOR argument is of type bsl::allocator (the default), then allocator, if supplied, shall be convertible to bslma::Allocator *. If the ALLOCATOR argument is of type bsl::allocator and allocator is not supplied, the currently installed default allocator will be used to supply memory.

explicit
basic_osyncstream(
    std::basic_ostream<CHAR_TYPE, CHAR_TRAITS>& stream,
    ALLOCATOR const& allocator = ALLOCATOR());
» more...

Create a basic_osyncstream object having the same value as the specified original object by moving the contents of original to the newly-created object. Optionally specify an allocator used to supply memory. original.get_wrapped() == nullptr after the call.

basic_osyncstream(
    basic_osyncstream&& original,
    ALLOCATOR const& allocator) noexcept;
» more...

Create a basic_osycnstream object that will forward stream output to the specified wrapped buffer. Optionally specify an allocator used to supply memory. If allocator is not supplied, a default-constructed object of the (template parameter) ALLOCATOR type is used. If the ALLOCATOR argument is of type bsl::allocator (the default), then allocator, if supplied, shall be convertible to bslma::Allocator *. If the ALLOCATOR argument is of type bsl::allocator and allocator is not supplied, the currently installed default allocator will be used to supply memory.

explicit
basic_osyncstream(
    streambuf_type* wrapped,
    ALLOCATOR const& allocator = ALLOCATOR());
» more...