[#BloombergLP-bslim-Printer_Helper-print-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::xref:BloombergLP/bslim/Printer_Helper.adoc[Printer&lowbar;Helper]::print
:relfileprefix: ../../../
:mrdocs:

Format `data` to `stream` at the specified indentation&period;

== Synopsis

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

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

== Description

Format the specified `data` to the specified output `stream` at the (absolute value of) the specified indentation `level`, using the specified `spacesPerLevel`, the number of spaces per indentation level for this and all of its nested objects&period; Note that this function dispatches to `printRaw` based on the type traits of the deduced (template parameter) `TYPE`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stream*
| output stream to which `data` is formatted
| *data*
| value to format
| *level*
| indentation level as defined by the BDE `print` contract
| *spacesPerLevel*
| spaces per indentation level&semi; negative for single&hyphen;line output
|===


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