A structure that represents a union between TypesT...
More...
#include <variant.h>
template<typename... TypesT>
struct fennec::variant< TypesT >
- Template Parameters
-
| TypesT | The types to hold in the variant |
|
|
| variant () |
| | Default Constructor, constructs the first type in TypesT... that is default constructible.
|
| |
| template<typename T > |
| | variant (T &&t) |
| | Conversion Constructor, constructs the type in TypesT... that is identical to T or the first that is constructible with T
|
| |
| template<typename T , typename... ArgsT> |
| | variant (type_identity< T >, ArgsT &&...args) |
| | Emplace Constructor, constructs the first type in TypesT... that is constructible with ArgsT...
|
| |
| | variant (const variant &v) |
| | Copy Constructor.
|
| |
| | variant (variant &&v) noexcept |
| | Move Constructor.
|
| |
|
| ~variant () |
| | Destructor, if a type is held, destruct it.
|
| |
◆ variant() [1/4]
template<typename... TypesT>
template<typename T >
- Template Parameters
-
- Parameters
-
◆ variant() [2/4]
template<typename... TypesT>
template<typename T , typename... ArgsT>
- Template Parameters
-
| ArgsT | The arguments of the constructor |
- Parameters
-
◆ variant() [3/4]
template<typename... TypesT>
◆ variant() [4/4]
template<typename... TypesT>
The documentation for this struct was generated from the following file: