Format name and the range [begin, end)] to the output stream.
Declared in <bslim_printer.h>
template<class ITERATOR>
void
printAttribute(
bslstl::StringRef const& name,
ITERATOR const& begin,
ITERATOR const& end) const;
Format to the output stream supplied at construction, the specified name followed by the range of values starting at the specified begin position and ending immediately before the specified end position. The parameterized ITERATOR type must support operator++, operator*, and operator==. This function will call printValue on each element in the range [begin, end)].
| Name | Description |
|---|---|
| name | attribute name printed before the range |
| begin | beginning of the range of values to format |
| end | end of the range of values to format (one past the last) |