BloombergLP::bslim::Printer_Helper::print

print overloads

Synopses

Declared in <bslim_printer.h>

Format data to stream at the specified indentation.

template<class TYPE>
static
void
print(
    std::ostream& stream,
    TYPE const& data,
    int level,
    int spacesPerLevel);
» more...

Format the range [begin, end)] to stream at the specified indentation.

template<class ITERATOR>
static
void
print(
    std::ostream& stream,
    ITERATOR const& begin,
    ITERATOR const& end,
    int level,
    int spacesPerLevel);
» more...

Format [begin, end)] to stream using printFunctionObject.

template<
    class ITERATOR,
    class PRINT_FUNCTOR>
static
void
print(
    std::ostream& stream,
    ITERATOR const& begin,
    ITERATOR const& end,
    PRINT_FUNCTOR const& printFunctionObject,
    int const level,
    int const spacesPerLevel);
» more...

Parameters

NameDescription
streamoutput stream to which data is formatted
datavalue to format
levelindentation level as defined by the BDE print contract
spacesPerLevelspaces per indentation level; negative for single-line output
beginbeginning of the range of objects to format
endend of the range of objects to format (one past the last)
printFunctionObjectfunctor used to format each element