Constructors
Declared in <bdlb_variant.h>
Create a variant object in the unset state that uses the currently installed default allocator to supply memory.
Variant11();
» more...
Create a variant by moving from original.
Variant11(bslmf::MovableRef<Variant11> original);
» more...
Create a variant from valueOrAllocator.
template<class TYPE_OR_ALLOCATOR>
explicit
Variant11(TYPE_OR_ALLOCATOR const& valueOrAllocator);
» more...
Create a variant by moving from the specified value.
template<class TYPE>
explicit
Variant11(TYPE&& value)
requires !bsl::is_same<
SelfType,
typename bsl::remove_const<
typename bsl::remove_reference<TYPE>::type>::type>::value
&&
!bsl::is_convertible<TYPE, bslma::Allocator *>::value;
» more...
Create a variant holding value using basicAllocator.
template<class TYPE>
Variant11(TYPE&& value)
requires !bsl::is_same<
SelfType,
typename bsl::remove_const<
typename bsl::remove_reference<TYPE>::type>::type>::value;
» more...
Create a variant from original using basicAllocator.
Variant11(
bslmf::MovableRef<Variant11> original,
bslma::Allocator* basicAllocator);
» more...
Create a variant with the type and value of original.
Variant11(
Variant11 const& original,
bslma::Allocator* basicAllocator = 0);
» more...
Create a variant holding value using basicAllocator.
template<class TYPE>
Variant11(
TYPE const& value,
bslma::Allocator* basicAllocator);
» more...
| Name | Description |
|---|---|
| original | source variant to copy or move from |
| valueOrAllocator | held value, or allocator if convertible to bslma::Allocator * |
| value | value assigned to or stored in this variant |
| basicAllocator | allocator used to supply memory |