[#BloombergLP-bdlb-PrintMethods-print-06a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/PrintMethods.adoc[PrintMethods]::print :relfileprefix: ../../../ :mrdocs: Format the specified `object` to the specified output `stream` at the (absolute value of) the optionally specified indentation `level` and return a reference to stream. Note that output will be formatted on one line. If `stream` is not valid on entry, this operation has no effect. == Synopsis Declared in `<bdlb_printmethods.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class CHAR_T, class CHAR_TRAITS_T, class ALLOC> std::ostream& 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]#Created with https://www.mrdocs.com[MrDocs]#