[#BloombergLP-bdlb-Variant_PrintVisitor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::Variant_PrintVisitor :relfileprefix: ../../ :mrdocs: This visitor, when invoked as a non‐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. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Variant_PrintVisitor; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/Variant_PrintVisitor/2constructor.adoc[`Variant_PrintVisitor`] [.small]#[constructor]# | Create a print visitor writing to the specified `stream` with the specified indentation `level` and `spacesPerLevel`. | 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_level`] | indentation level | xref:BloombergLP/bdlb/Variant_PrintVisitor/d_spacesPerLevel.adoc[`d_spacesPerLevel`] | spaces per indentation level | xref:BloombergLP/bdlb/Variant_PrintVisitor/d_stream_p.adoc[`d_stream_p`] | output stream (held, not owned) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#