[#BloombergLP-bdlb-TypeTraitHasPrintMethod] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::TypeTraitHasPrintMethod :relfileprefix: ../../ :mrdocs: A class should declare this trait if it has a `print` method with the following signature: ` bsl::ostream& print(bsl::ostream& stream, int level = 0, int spacesPerLevel = 4) const; ` == Synopsis Declared in `<bdlb_printmethods.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TypeTraitHasPrintMethod; ---- == Types [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/TypeTraitHasPrintMethod/Metafunction.adoc[`Metafunction`] | Metafunction that evaluates to `HasPrintMethod<TYPE>::type`. | xref:BloombergLP/bdlb/TypeTraitHasPrintMethod/NestedTraitDeclaration.adoc[`NestedTraitDeclaration`] | This class template ties the `bdlb::TypeTraitHasPrintMethod` trait tag to the `bdlb::HasPrintMethod` trait metafunction. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#