[#bsl-PrintTo-09]
= xref:bsl.adoc[bsl]::PrintTo
:relfileprefix: ../
:mrdocs:

`PrintTo` overloads

== Synopses

Declared in `&lt;bslim&lowbar;gtestutil&period;h&gt;`

Write the specified `value` to the specified `&ast;stream`, surrounded by double quotes&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/PrintTo-00.adoc[PrintTo](
    xref:BloombergLP/bslstl/StringRef.adoc[BloombergLP::bslstl::StringRef] const& value,
    std::ostream* stream);
----

[.small]#xref:bsl/PrintTo-00.adoc[_» more&period;&period;&period;_]#

Write the specified `value` to the specified `&ast;stream`, surrounded by double quotes&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/PrintTo-02.adoc[PrintTo](
    xref:bsl/string.adoc[string] const& value,
    std::ostream* stream);
----

[.small]#xref:bsl/PrintTo-02.adoc[_» more&period;&period;&period;_]#

Write the specified `value` to the specified `&ast;stream`, surrounded by double quotes, writing non&hyphen;printable characters with &apos;x&period;&period;&period;&apos; escapes&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/PrintTo-07.adoc[PrintTo](
    xref:bsl/wstring.adoc[wstring] const& value,
    std::ostream* stream);
----

[.small]#xref:bsl/PrintTo-07.adoc[_» more&period;&period;&period;_]#

Write the specified `value` to the specified `&ast;stream`, surrounded by double quotes&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
void
xref:bsl/PrintTo-0f.adoc[PrintTo](
    xref:bsl/optional-072.adoc[optional&lt;TYPE&gt;] const& value,
    std::ostream* stream);
----

[.small]#xref:bsl/PrintTo-0f.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| string reference to write
| *stream*
| stream to which the quoted string is written
|===


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