Fixed‐arity specialization of Variant for 2 types.
Synopsis
Declared in <bdlb_variant.h>
template<
class A1,
class A2>
class Variant2
: public VariantImp<bslmf::TypeList2<A1, A2>::ListType>
Description
Its 2 template arguments must all be specified (none are defaulted to bslmf::Nil). It provides the same functionality as Variant<A1, A2>.
Base Classes
Name |
Description |
This class provides the implementation of |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
|
|
|
|
Assign the specified |
|
Assign |
|
DEPRECATED: Do not use. |
|
DEPRECATED: Do not use. |
|
Emplace a |
|
Return whether this variant currently holds a |
|
Return whether this variant currently holds no value. |
|
DEPRECATED: Do not use. |
|
Format this object to the specified output |
|
Destroy the current value held by this variant (if any), and reset this variant to the unset state. |
|
Swap the value of this object with |
|
|
|
Return the 1‐based index of the held type, or 0 if unset. |
|
Return |
|
|
Nested trait declaration for |
Nested trait declaration for |
|
Nested trait declaration for |
|
Nested trait declaration for |
|
|
Nested trait declaration for |
Nested trait declaration for |
|
Nested trait declaration for |
|
Nested trait declaration for |
Non-Member Functions
Name |
Description |
Return whether |
|
Grant the equality comparison operator access to this class's private members. |
|
Return whether |
|
Swap the values of the specified |
Created with MrDocs