BloombergLP::bdlb::OptionalPrinter

Utility for printing bsl::optional to standard output streams. This class has operator<< defined for it, so it can be used, for example, in ball logs.

Synopsis

Declared in <bdlb_optionalprinter.h>

template<class TYPE>
class OptionalPrinter;

Member Functions

NameDescription
OptionalPrinter [constructor]Create OptionalPrinter with the specified data.
print Format this object to the specified output stream.
operator BloombergLP::bslmf::NestedTraitDeclaration<OptionalPrinter, EnableStreamedFormatter> Declare that this type enables the streamed formatter.