BloombergLP::bdlb::TypeTraitHasPrintMethod

Old-style trait tag indicating that a class provides a BDE-style print method.

Synopsis

Declared in <bdlb_printmethods.h>

struct TypeTraitHasPrintMethod;

Description

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; `

Types

NameDescription
Metafunction Metafunction that evaluates to HasPrintMethod<TYPE>::type.
NestedTraitDeclaration This class template ties the bdlb::TypeTraitHasPrintMethod trait tag to the bdlb::HasPrintMethod trait metafunction.