General Utility Library for C++14  2.11
gul14::variant< Ts > Class Template Reference

Detailed Description

template<typename... Ts>
class gul14::variant< Ts >

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.

Since
GUL version 2.9.0
See also
visit(), make_overload_set()

The documentation for this class was generated from the following file: