BloombergLP::bdlb::Variant5::Variant5

Create a variant from original using basicAllocator.

Synopsis

Declared in <bdlb_variant.h>

Variant5(
    bslmf::MovableRef<Variant5> original,
    bslma::Allocator* basicAllocator);

Description

If basicAllocator is 0, the currently installed default allocator is used. The contents of original are moved to the newly-created object with original left in a valid but unspecified state.

Parameters

NameDescription
originalsource variant to copy or move from
basicAllocatorallocator used to supply memory