[#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 `data` to `stream` at the specified indentation&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 `&lsqb;begin, end)&rsqb;` to `stream` at the specified indentation&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 `&lsqb;begin, end)&rsqb;` to `stream` using `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;_]#

== 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
| *begin*
| beginning of the range of objects to format
| *end*
| end of the range of objects to format (one past the last)
| *printFunctionObject*
| functor used to format each element
|===


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