Forward declaration of basic_osyncstream.

Synopsis

Declared in <bslstl_osyncstream.h>

template<
    class CHAR_TYPE,
    class CHAR_TRAITS = char_traits<CHAR_TYPE>,
    class ALLOCATOR = allocator<CHAR_TYPE>>
class basic_osyncstream
    : public std::basic_ostream<CHAR_TYPE, CHAR_TRAITS>

Base Classes

Name

Description

std::basic_ostream<CHAR_TYPE, CHAR_TRAITS>

Template class basic_ostream.

Types

Name

Description

sentry

Performs setup work for output streams.

Type Aliases

Name

Description

allocator_type

Allocator type used by this stream.

char_type

Character type manipulated by this stream.

int_type

Integer type returned by stream operations.

off_type

Offset type used by the character traits.

pos_type

Position type used by the character traits.

streambuf_type

Stream buffer type wrapped by this stream's sync buffer.

syncbuf_type

Synchronized stream buffer type used by this output stream.

traits_type

Character traits type used by this stream.

Member Functions

Name

Description

basic_osyncstream [constructor]

Constructors

operator=

Transfer the associated output to the wrapped stream buffer then assign to this object the value of the specified original, and return a reference providing modifiable access to this object. The contents of original are move‐assigned to this object. original.get_wrapped() == nullptr after the call.

emit

Atomically transfer any characters buffered by this object to the wrapped stream buffer, so that it appears in the output stream as a contiguous sequence of characters. If an error occurs, set the badbit of the rdstate to true.

get_allocator

Return the allocator used to supply memory.

get_wrapped

Return the wrapped buffer.

rdbuf

Return an address providing modifiable access to the basic_syncbuf object that is internally used by this stream object to buffer unformatted characters.

Created with MrDocs