BloombergLP::bdlb::Variant_CopyConstructVisitor

This visitor, when invoked as a non-modifiable function object on an instance of some template parameter TYPE, will copy-insert that instance to create an instance of the same TYPE in an uninitialized buffer specified at construction of this visitor.

Synopsis

Declared in <bdlb_variant.h>

struct Variant_CopyConstructVisitor;

Member Functions

NameDescription
Variant_CopyConstructVisitor [constructor]Create a copy-construct visitor targeting the specified buffer using the specified allocator.
operator() Copy-construct a TYPE into the buffer supplied at construction.

Data Members

NameDescription
d_allocator_p Allocator used for construction.
d_buffer_p Destination buffer for copy construction.