Fixed‐arity specialization of Variant for 18 types.
Synopsis
Declared in <bdlb_variant.h>
template<
class A1,
class A2,
class A3,
class A4,
class A5,
class A6,
class A7,
class A8,
class A9,
class A10,
class A11,
class A12,
class A13,
class A14,
class A15,
class A16,
class A17,
class A18>
class Variant18
: public VariantImp<bslmf::TypeList18<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18>::ListType>
Description
Its 18 template arguments must all be specified (none are defaulted to bslmf::Nil). It provides the same functionality as `Variant<A1, A2, ..., A18>`.
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