estd::variant
Overview
estd::variant
represents a type-safe union similar to std::variant
. It
holds a value of exactly one of its alternative types.
The size of the variant equals that of its largest alternative plus one size_t to store the index of the alternative.
Usage Context
Preconditions |
Make sure to include the appropriate library header for variant. |
Assumptions of usage |
|
Recommended usage guidance |
|