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);
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);
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);
Parameters
Name |
Description |
stream |
output stream to which |
data |
value to format |
level |
indentation level as defined by the BDE |
spacesPerLevel |
spaces per indentation level; negative for single‐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 |
Created with MrDocs