[#BloombergLP-bdlb-PrintMethods_Imp-0c-print]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/PrintMethods_Imp-0c.adoc[PrintMethods&lowbar;Imp&lt;TYPE, bslmf::SelectTraitCase&lt;&gt;&gt;]::print
:relfileprefix: ../../../
:mrdocs:

Print the specified `object` to the specified `stream` using `operator&lt;&lt;`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::ostream&
print(
    std::ostream& stream,
    TYPE const& object,
    int level,
    int spacesPerLevel);
----

== Description

Note that a compiler error will result if the specified `TYPE` does not have a `&lt;&lt;` output stream operator&period;

== Return Value

reference to `stream`

== Parameters

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


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