[#BloombergLP-bslim-Printer_Helper-print-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::xref:BloombergLP/bslim/Printer_Helper.adoc[Printer_Helper]::print :relfileprefix: ../../../ :mrdocs: Format the range `[begin, end)]` to `stream` at the specified indentation. == Synopsis Declared in `<bslim_printer.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ITERATOR> static void print( std::ostream& stream, ITERATOR const& begin, ITERATOR const& end, int level, int spacesPerLevel); ---- == Description Format the range of objects specified by `[ begin, end )]` 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 `++` and `*` to access the objects. Individual objects are printed with `printValue`. == Parameters [cols="1,4"] |=== | Name| Description | *stream* | output stream to which the range is formatted | *begin* | beginning of the range of objects to format | *end* | end of the range of objects to format (one past the last) | *level* | indentation level as defined by the BDE `print` contract | *spacesPerLevel* | spaces per indentation level; negative for single‐line output |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#