BloombergLP::bslstl::IoManip_QuotedStringFormatter

Temporary proxy for quoting a bsl::basic_string in stream I/O.

Synopsis

Declared in <bslstl_iomanip.h>

template<
    class t_CHAR_TYPE,
    class t_CHAR_TRAITS,
    class t_ALLOC>
class IoManip_QuotedStringFormatter;

Description

Private class: do not use outside of bslstl_iomanip.h header. This private class provides a temporary storage that can be extracted to/from a stream and provides data to the standard implementation of the quoted function. Note that this class does not contain the storage itself, but only points to an external object. Note that QuotedStringViewFormatter is designed so that its objects are returned as temporary objects (of opaque type) from bsl::quoted, and then passed to a streaming operator; it serves as a temporary proxy for a string value.

Member Functions

NameDescription
IoManip_QuotedStringFormatter [constructor]Create an object pointing to the specified str and having the optionally specified delim and escape characters.
delim Return the delimiter character used by this formatter.
escape Return the escape character.
str Return a pointer providing modifiable access to the underlying string.

Non-Member Functions

NameDescription
::bsl::quotedReturn a streamable object that quotes the specified value.