[#BloombergLP-bdlb-VariantPrinter] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::VariantPrinter :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_VARIANT> class VariantPrinter; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/VariantPrinter/2constructor.adoc[`VariantPrinter`] [.small]#[constructor]# | Create `VariantPrinter` with the specified `data`. | xref:BloombergLP/bdlb/VariantPrinter/print.adoc[`print`] | Format this object to the specified output stream. | xref:BloombergLP/bdlb/VariantPrinter/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<VariantPrinter, EnableStreamedFormatter>`] | Declare that this type enables the streamed formatter. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#