|
RPNX::DataStructures
Header-only C++ data structures and supporting utilities.
|
Allocator-aware erased operations used by basic_variant.
More...
#include <variant.hpp>
Classes | |
| class | is_supported_variant |
| class | is_supported_variant< basic_variant< Allocator2, Ts... > > |
| struct | variant_info |
| Erased operation table for a single variant alternative. More... | |
Static Public Member Functions | |
| template<typename T> | |
| static constexpr variant_info | make_variant_info () |
| Builds the erased operation table for an alternative. | |
Allocator-aware erased operations used by basic_variant.
The table produced by this class records allocation, lifetime, type, and comparison operations for one alternative. It is exposed so template instantiations can share metadata; applications normally use basic_variant rather than this implementation support type.
| Allocator | Allocator carried by the associated variant. |
|
inlinestaticconstexpr |
Builds the erased operation table for an alternative.
| T | Alternative type represented by the table. |
T objects.