General Utility Library for C++14
2.11
|
A "type-safe union".
Like a plain union, a variant can hold a value of one of a specified set of types. Unlike a union, it can be queried for the type it is currently holding and ensures that only the stored type is accessed. The implementation in the library is a backport from C++17 and should behave like std::variant.