[#BloombergLP-bdlb-PrintMethods-print-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/PrintMethods.adoc[PrintMethods]::print
:relfileprefix: ../../../
:mrdocs:

`print` overloads

== Synopses

Declared in `&lt;bdlb&lowbar;printmethods&period;h&gt;`

Format the specified `object` to the specified output `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::ostream&
xref:BloombergLP/bdlb/PrintMethods/print-08.adoc[print](
    std::ostream& stream,
    char object,
    int level = 0,
    int spacesPerLevel = 4);
----

[.small]#xref:BloombergLP/bdlb/PrintMethods/print-08.adoc[_» more&period;&period;&period;_]#

Format the specified `object` to the specified output `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::ostream&
xref:BloombergLP/bdlb/PrintMethods/print-0f.adoc[print](
    std::ostream& stream,
    unsigned char object,
    int level = 0,
    int spacesPerLevel = 4);
----

[.small]#xref:BloombergLP/bdlb/PrintMethods/print-0f.adoc[_» more&period;&period;&period;_]#

Format the specified `std&colon;&colon;monostate` `object` to the specified output `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::ostream&
xref:BloombergLP/bdlb/PrintMethods/print-04e.adoc[print](
    std::ostream& stream,
    std::monostate const& object,
    int level = 0,
    int spacesPerLevel = 4);
----

[.small]#xref:BloombergLP/bdlb/PrintMethods/print-04e.adoc[_» more&period;&period;&period;_]#

Format the specified `object` to the specified output `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
std::ostream&
xref:BloombergLP/bdlb/PrintMethods/print-049.adoc[print](
    std::ostream& stream,
    TYPE const& object,
    int level = 0,
    int spacesPerLevel = 4);
----

[.small]#xref:BloombergLP/bdlb/PrintMethods/print-049.adoc[_» more&period;&period;&period;_]#

Format the specified `std&colon;&colon;optional` `object` to the specified output `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
std::ostream&
xref:BloombergLP/bdlb/PrintMethods/print-0e.adoc[print](
    std::ostream& stream,
    std::optional&lt;TYPE&gt; const& object,
    int level = 0,
    int spacesPerLevel = 4);
----

[.small]#xref:BloombergLP/bdlb/PrintMethods/print-0e.adoc[_» more&period;&period;&period;_]#

Format the specified `std&colon;&colon;variant` `object` to the specified output `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; TYPE&gt;
std::ostream&
xref:BloombergLP/bdlb/PrintMethods/print-062.adoc[print](
    std::ostream& stream,
    std::variant&lt;TYPE&period;&period;&period;&gt; const& object,
    int level = 0,
    int spacesPerLevel = 4);
----

[.small]#xref:BloombergLP/bdlb/PrintMethods/print-062.adoc[_» more&period;&period;&period;_]#

Format the specified character vector `object` to the specified output `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOC&gt;
std::ostream&
xref:BloombergLP/bdlb/PrintMethods/print-02.adoc[print](
    std::ostream& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;char, ALLOC&gt;] const& object,
    int level = 0,
    int spacesPerLevel = 4);
----

[.small]#xref:BloombergLP/bdlb/PrintMethods/print-02.adoc[_» more&period;&period;&period;_]#

Format the specified string `object` to the specified output `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHAR&lowbar;T,
    class CHAR&lowbar;TRAITS&lowbar;T,
    class ALLOC&gt;
std::ostream&
xref:BloombergLP/bdlb/PrintMethods/print-06a.adoc[print](
    std::ostream& stream,
    xref:bsl/basic_string-0faf.adoc[bsl::basic&lowbar;string&lt;CHAR&lowbar;T, CHAR&lowbar;TRAITS&lowbar;T, ALLOC&gt;] const& object,
    int level = 0,
    int spacesPerLevel = 4);
----

[.small]#xref:BloombergLP/bdlb/PrintMethods/print-06a.adoc[_» more&period;&period;&period;_]#

== Return Value

reference to `stream`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stream*
| output stream
| *object*
| character to print
| *level*
| initial indentation level
| *spacesPerLevel*
| spaces per indentation level
|===


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