Temporary proxy for quoting a bsl::basic_string in stream I/O.
Declared in <bslstl_iomanip.h>
template<
class t_CHAR_TYPE,
class t_CHAR_TRAITS,
class t_ALLOC>
class IoManip_QuotedStringFormatter;
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.
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
::bsl::quoted | Return a streamable object that quotes the specified value. |