[#BloombergLP-bdlb-VariantPrinter_Visitor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::VariantPrinter&lowbar;Visitor
:relfileprefix: ../../
:mrdocs:

Visitor for visiting `t&lowbar;TYPE` held by a variant and printing it&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;variantprinter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct VariantPrinter&lowbar;Visitor;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/VariantPrinter_Visitor/operator_call.adoc[`operator()`] 
| Call `print` on `object` using the data fields of this `struct`&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/VariantPrinter_Visitor/d_level.adoc[`d&lowbar;level`] 
| Absolute indentation level passed to `print`&period;
| xref:BloombergLP/bdlb/VariantPrinter_Visitor/d_spacesPerLevel.adoc[`d&lowbar;spacesPerLevel`] 
| Spaces per indentation level passed to `print`&period;
| xref:BloombergLP/bdlb/VariantPrinter_Visitor/d_stream_p.adoc[`d&lowbar;stream&lowbar;p`] 
| Stream to which the visited value is printed&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
