BloombergLP::bdlb::Variant_CopyAssignVisitor

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

Synopsis

Declared in <bdlb_variant.h>

struct Variant_CopyAssignVisitor;

Member Functions

NameDescription
Variant_CopyAssignVisitor [constructor]Create a copy-assign visitor targeting the specified buffer.
operator() Copy-assign a TYPE value into the buffer supplied at construction.

Data Members

NameDescription
d_buffer_p Destination buffer for copy assignment.