|
BDE 4.39.x Production Release
|
Provide a suite of helper classes for printing bsl::optional.
Provide a suite of helper classes for printing bsl::optional.
bsl::optionalbdlb::OptionalPrinterThis component provides utility classes bdlb::OptionalPrinter and bdlb::OptionalPrinterUtil for printing bsl::optional.
The class bdlb::OptionalPrinter can also be used with bsl::format (it defines the bslfmt::EnableStreamedFormatter trait). For information about the supported format options see the `bslfmt` package documentation .
This section illustrates intended use of this component.
In this example, we demonstrate how to use bdlb::OptionalPrinterUtil to print bsl::optional to a stream: