template <typename T0, typename... Types>
class variant
Defined at line 40 of file ../../third_party/github.com/google/cppdap/src/include/dap/variant.h
variant represents a type-safe union of DAP types.
variant can hold a value of any of the template argument types.
variant defaults to a default-constructed T0.
Public Methods
void variant<T0, Types...> ()
constructors
Defined at line 70 of file ../../third_party/github.com/google/cppdap/src/include/dap/variant.h
template <typename T>
void variant<T0, Types...> (const T & val)
Defined at line 73 of file ../../third_party/github.com/google/cppdap/src/include/dap/variant.h
template <typename T>
variant<T0, Types...> & operator= (const T & val)
assignment
Defined at line 79 of file ../../third_party/github.com/google/cppdap/src/include/dap/variant.h
template <typename T>
T & get ()
get() returns the contained value of the type T.
If the any does not contain a value of type T, then get() will assert.
Defined at line 87 of file ../../third_party/github.com/google/cppdap/src/include/dap/variant.h
template <typename T>
bool is ()
is() returns true iff the contained value is of type T.
Defined at line 94 of file ../../third_party/github.com/google/cppdap/src/include/dap/variant.h
template <typename T>
bool accepts ()
accepts() returns true iff the variant accepts values of type T.
Defined at line 100 of file ../../third_party/github.com/google/cppdap/src/include/dap/variant.h
Friends
template <typename T0, typename... Types>
class Deserializer
template <typename T0typename... Types>
class Serializer