[#BloombergLP-bdlb-PrintMethods-print-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/PrintMethods.adoc[PrintMethods]::print :relfileprefix: ../../../ :mrdocs: `print` overloads == Synopses Declared in `<bdlb_printmethods.h>` Format the specified `object` to the specified output `stream`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:BloombergLP/bdlb/PrintMethods/print-08.adoc[print]( std::ostream& stream, char object, int level = 0, int spacesPerLevel = 4); ---- [.small]#xref:BloombergLP/bdlb/PrintMethods/print-08.adoc[_» more..._]# Format the specified `object` to the specified output `stream`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:BloombergLP/bdlb/PrintMethods/print-0f.adoc[print]( std::ostream& stream, unsigned char object, int level = 0, int spacesPerLevel = 4); ---- [.small]#xref:BloombergLP/bdlb/PrintMethods/print-0f.adoc[_» more..._]# Format the specified `std::monostate` `object` to the specified output `stream`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::ostream& xref:BloombergLP/bdlb/PrintMethods/print-04e.adoc[print]( std::ostream& stream, std::monostate const& object, int level = 0, int spacesPerLevel = 4); ---- [.small]#xref:BloombergLP/bdlb/PrintMethods/print-04e.adoc[_» more..._]# Format the specified `object` to the specified output `stream`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> std::ostream& xref:BloombergLP/bdlb/PrintMethods/print-049.adoc[print]( std::ostream& stream, TYPE const& object, int level = 0, int spacesPerLevel = 4); ---- [.small]#xref:BloombergLP/bdlb/PrintMethods/print-049.adoc[_» more..._]# Format the specified `std::optional` `object` to the specified output `stream`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> std::ostream& xref:BloombergLP/bdlb/PrintMethods/print-0e.adoc[print]( std::ostream& stream, std::optional<TYPE> const& object, int level = 0, int spacesPerLevel = 4); ---- [.small]#xref:BloombergLP/bdlb/PrintMethods/print-0e.adoc[_» more..._]# Format the specified `std::variant` `object` to the specified output `stream`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... TYPE> std::ostream& xref:BloombergLP/bdlb/PrintMethods/print-062.adoc[print]( std::ostream& stream, std::variant<TYPE...> const& object, int level = 0, int spacesPerLevel = 4); ---- [.small]#xref:BloombergLP/bdlb/PrintMethods/print-062.adoc[_» more..._]# Format the specified character vector `object` to the specified output `stream`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOC> std::ostream& xref:BloombergLP/bdlb/PrintMethods/print-02.adoc[print]( std::ostream& stream, xref:bsl/vector-00d.adoc[bsl::vector<char, ALLOC>] const& object, int level = 0, int spacesPerLevel = 4); ---- [.small]#xref:BloombergLP/bdlb/PrintMethods/print-02.adoc[_» more..._]# Format the specified string `object` to the specified output `stream`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class CHAR_T, class CHAR_TRAITS_T, class ALLOC> std::ostream& xref:BloombergLP/bdlb/PrintMethods/print-06a.adoc[print]( std::ostream& stream, xref:bsl/basic_string-0faf.adoc[bsl::basic_string<CHAR_T, CHAR_TRAITS_T, ALLOC>] const& object, int level = 0, int spacesPerLevel = 4); ---- [.small]#xref:BloombergLP/bdlb/PrintMethods/print-06a.adoc[_» more..._]# == Return Value reference to `stream` == Parameters [cols="1,4"] |=== | Name| Description | *stream* | output stream | *object* | character to print | *level* | initial indentation level | *spacesPerLevel* | spaces per indentation level |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#