printAttribute overloads
Synopses
Declared in <bslim_printer.h>
Format to the output stream supplied at construction the specified data, prefixed by the specified name. Format data based on the parameterized TYPE:
template<class TYPE>
void
printAttribute(
bslstl::StringRef const& name,
TYPE const& data) const;
Format name and the range [begin, end)] to the output stream.
template<class ITERATOR>
void
printAttribute(
bslstl::StringRef const& name,
ITERATOR const& begin,
ITERATOR const& end) const;
Format name and [begin, end)] using printFunctionObject.
template<
class ITERATOR,
class PRINT_FUNCTOR>
void
printAttribute(
bslstl::StringRef const& name,
ITERATOR const& begin,
ITERATOR const& end,
PRINT_FUNCTOR const& printFunctionObject) const;
Parameters
Name |
Description |
name |
attribute name printed before |
data |
value to format |
begin |
beginning of the range of values to format |
end |
end of the range of values to format (one past the last) |
printFunctionObject |
functor used to format each element |
Created with MrDocs