variant
A type safe generalized union type
Classes
variant.hpp File Reference

Implements the class variant. More...

#include <cassert>
#include <stdexcept>
#include <typeinfo>
#include <type_traits>
#include <utility>
#include "variant_storage.hpp"

Go to the source code of this file.

Classes

class  variant< Types >
 A type safe generalized union. More...
 
class  bad_variant_access
 Exception class thrown when a type that is not currently bound is accessed via variant::get. More...
 
struct  variant_element< I, Variant >
 Defines the member type type to the Ith type of the variant. More...
 
struct  variant_index< T, Variant >
 Obtain the index of a variant type. More...
 
struct  variant_size< Variant >
 Provides access to the number of elements in a variant as a compile-time constant expression. More...
 
class  variant< Types >
 A type safe generalized union. More...
 

Detailed Description

Implements the class variant.

Author
Ennio Barbaro
Date
18 Jan 2015