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

Format the specified `object` to the specified output `stream` at the (absolute value of) the optionally specified indentation `level` and return a reference to stream&period; Note that output will be formatted on one line&period; Also note that non&hyphen;printable characters in `object` will be printed using their hexadecimal representation&period; If `stream` is not valid on entry, this operation has no effect&period;

== Synopsis

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

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


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