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

`print` overloads

== Synopses

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

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;


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

[.small]#xref:BloombergLP/bslim/Printer_Helper/print-01.adoc[_» more&period;&period;&period;_]#

Format the range of objects specified by `&lsqb; begin, end )&rsqb;` 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 the objects and their nested objects, where `ITERATOR` supports the operators `&plus;&plus;` and `&ast;` to access the objects&period; Individual objects are printed with `printValue`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ITERATOR&gt;
static
void
xref:BloombergLP/bslim/Printer_Helper/print-07.adoc[print](
    std::ostream& stream,
    ITERATOR const& begin,
    ITERATOR const& end,
    int level,
    int spacesPerLevel);
----

[.small]#xref:BloombergLP/bslim/Printer_Helper/print-07.adoc[_» more&period;&period;&period;_]#

Format the range of objects specified by `&lsqb; begin, end )&rsqb;` 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 the objects and their nested objects, where `ITERATOR` supports the operators `&plus;&plus;` and `&ast;` to access the objects, printing the individual objects with the specified `printFunctionObject`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class ITERATOR,
    class PRINT&lowbar;FUNCTOR&gt;
static
void
xref:BloombergLP/bslim/Printer_Helper/print-09.adoc[print](
    std::ostream& stream,
    ITERATOR const& begin,
    ITERATOR const& end,
    PRINT&lowbar;FUNCTOR const& printFunctionObject,
    int const level,
    int const spacesPerLevel);
----

[.small]#xref:BloombergLP/bslim/Printer_Helper/print-09.adoc[_» more&period;&period;&period;_]#


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