BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlb_optionalprinter

Detailed Description

Outline

Purpose

Provide a suite of helper classes for printing bsl::optional.

Classes

Description

This component provides utility classes bdlb::OptionalPrinter and bdlb::OptionalPrinterUtil for printing bsl::optional.

Usage

This section illustrates intended use of this component.

Example 1: Printing bsl::optional to a stream

In this example, we demonstrate how to use bdlb::OptionalPrinterUtil to print bsl::optional to a stream:

Definition bslstl_optional.h:1861
static OptionalPrinter< TYPE > makePrinter(const bsl::optional< TYPE > &data)
Return an OptionalPrinter that prints the specified data.
Definition bdlb_optionalprinter.h:191