[#BloombergLP-bdlb-Variant_PrintVisitor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::Variant&lowbar;PrintVisitor
:relfileprefix: ../../
:mrdocs:

This visitor, when invoked as a non&hyphen;modifiable function object on an instance of some template parameter `TYPE`, writes the value of that instance to a stream specified at construction of this visitor, using spacing information also specified at construction&period;

== Synopsis

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

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

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/Variant_PrintVisitor/2constructor.adoc[`Variant&lowbar;PrintVisitor`]         [.small]#[constructor]#
| Create a print visitor writing to the specified `stream` with the specified indentation `level` and `spacesPerLevel`&period;
| xref:BloombergLP/bdlb/Variant_PrintVisitor/operator_call-07.adoc[`operator()`] 
| Function call operators
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/Variant_PrintVisitor/d_level.adoc[`d&lowbar;level`] 
| indentation level
| xref:BloombergLP/bdlb/Variant_PrintVisitor/d_spacesPerLevel.adoc[`d&lowbar;spacesPerLevel`] 
| spaces per indentation level
| xref:BloombergLP/bdlb/Variant_PrintVisitor/d_stream_p.adoc[`d&lowbar;stream&lowbar;p`] 
| output stream (held, not owned)
|===



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