[#bsl-quoted-0c]
= xref:bsl.adoc[bsl]::quoted
:relfileprefix: ../
:mrdocs:

Return a streamable object that quotes the specified `value`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;iomanip&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;CHAR&lowbar;TYPE,
    class t&lowbar;CHAR&lowbar;TRAITS,
    class t&lowbar;ALLOC&gt;
xref:BloombergLP/bslstl/IoManip_QuotedStringFormatter.adoc[BloombergLP::bslstl::IoManip&lowbar;QuotedStringFormatter&lt;t&lowbar;CHAR&lowbar;TYPE, t&lowbar;CHAR&lowbar;TRAITS, t&lowbar;ALLOC&gt;]
quoted(
    xref:bsl/basic_string-0faf.adoc[bsl::basic&lowbar;string&lt;t&lowbar;CHAR&lowbar;TYPE, t&lowbar;CHAR&lowbar;TRAITS, t&lowbar;ALLOC&gt;]& value,
    t&lowbar;CHAR&lowbar;TYPE delim = t&lowbar;CHAR&lowbar;TYPE(&apos;&quot;&apos;),
    t&lowbar;CHAR&lowbar;TYPE escape = t&lowbar;CHAR&lowbar;TYPE(&apos;&bsol;&bsol;&apos;));
----

== Description

The returned object contains a quoted version of the specified `value` obtained using the optionally specified `delim` and `escape` characters, and can be inserted into an output stream or extracted from an input stream&period;

== Return Value

streamable object that quotes `value` for insertion or extraction

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| string to quote
| *delim*
| delimiter character surrounding the quoted string
| *escape*
| escape character used within the quoted string
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
