[#BloombergLP-bslim-Printer-printAttribute-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::xref:BloombergLP/bslim/Printer.adoc[Printer]::printAttribute :relfileprefix: ../../../ :mrdocs: `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`: [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> void xref:BloombergLP/bslim/Printer/printAttribute-05.adoc[printAttribute]( xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& name, TYPE const& data) const; ---- [.small]#xref:BloombergLP/bslim/Printer/printAttribute-05.adoc[_» more..._]# Format `name` and the range `[begin, end)]` to the output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ITERATOR> void xref:BloombergLP/bslim/Printer/printAttribute-01.adoc[printAttribute]( xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& name, ITERATOR const& begin, ITERATOR const& end) const; ---- [.small]#xref:BloombergLP/bslim/Printer/printAttribute-01.adoc[_» more..._]# Format `name` and `[begin, end)]` using `printFunctionObject`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class ITERATOR, class PRINT_FUNCTOR> void xref:BloombergLP/bslim/Printer/printAttribute-00.adoc[printAttribute]( xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& name, ITERATOR const& begin, ITERATOR const& end, PRINT_FUNCTOR const& printFunctionObject) const; ---- [.small]#xref:BloombergLP/bslim/Printer/printAttribute-00.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *name* | attribute name printed before `data` | *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 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#