[#BloombergLP-bslim-Printer-printAttribute-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::xref:BloombergLP/bslim/Printer.adoc[Printer]::printAttribute :relfileprefix: ../../../ :mrdocs: Print to the output stream supplied at construction the specified `name` and then call the specified `printFunctionObject` with the range of values starting at the specified `begin` position and ending immediately before the specified `end` position, the stream supplied at construction, `absLevel() + 1`, and `spacesPerLevel()`. The parameterized `PRINT_FUNCTOR` must be an invocable type whose arguments match the following function signature: ` bsl::ostream& (*)(bsl::ostream& stream, const TYPE& data, int level, int spacesPerLevel) ` == Synopsis Declared in `<bslim_printer.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class ITERATOR, class PRINT_FUNCTOR> void printAttribute( xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& name, ITERATOR const& begin, ITERATOR const& end, PRINT_FUNCTOR const& printFunctionObject) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#