Utility for printing bsl::variant 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_variantprinter.h>

template<class t_VARIANT>
class VariantPrinter;

Member Functions

Name

Description

VariantPrinter [constructor]

Create VariantPrinter with the specified data.

print

Format this object to the specified output stream.

operator BloombergLP::bslmf::NestedTraitDeclaration<VariantPrinter, EnableStreamedFormatter>

Declare that this type enables the streamed formatter.

Created with MrDocs