BloombergLP::bdlb::Variant_MoveConstructVisitor

This visitor, when invoked as a non-modifiable function object on an instance of some template parameter TYPE, will move-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_MoveConstructVisitor;

Member Functions

NameDescription
Variant_MoveConstructVisitor [constructor]Create a move-construct visitor targeting the specified buffer using the specified allocator.
operator() Move-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 move construction.