BloombergLP::bdlb::Variant_PrintVisitor

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>

struct Variant_PrintVisitor;

Member Functions

NameDescription
Variant_PrintVisitor [constructor]Create a print visitor writing to the specified stream with the specified indentation level and spacesPerLevel.
operator() Function call operators

Data Members

NameDescription
d_level indentation level
d_spacesPerLevel spaces per indentation level
d_stream_p output stream (held, not owned)