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.
Declared in <bdlb_optionalprinter.h>
template<class TYPE>
class OptionalPrinter;
| Name | Description |
|---|---|
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. |