Type‐safe discriminated union of alternative types.
Synopsis
Declared in <bslstl_variant.h>
template<
class t_HEAD,
class... t_TAIL>
class variant;
Type Aliases
Name |
Description |
Type alias to the allocator type used by |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
|
|
Return a copy of this object's allocator. |
|
Return the index of the currently managed alternative. |
|
Efficiently exchange the value of this object with |
|
Return |
|
Nested trait declaration for |
|
Nested trait declaration for |
|
Nested trait declaration for |
Friends
Name |
Description |
Define the data representation and special member functions of |
Non-Member Functions
Name |
Description |
See the first |
|
See the first |
|
See the first |
|
Return a reference to the alternative at index |
|
See the first |
|
See the first |
|
Return a reference to the alternative of type |
|
See the first |
|
Return a pointer to the |
|
Return a pointer to the |
|
Return a pointer to the alternative at index |
|
Return a pointer to the alternative at index |
|
Return |
|
Return |
|
Return |
|
Return |
|
Return the three‐way comparison result of |
|
Return |
|
Return |
|
Return |
|
Efficiently exchange the values of the specified |
Created with MrDocs