variant.h File - 0.9.7 |RTTR
variant.h File Reference
#include "rttr/detail/base/core_prerequisites.h"
#include "rttr/detail/misc/misc_type_traits.h"
#include "rttr/detail/variant/variant_data.h"
#include "rttr/detail/misc/argument_wrapper.h"
#include "rttr/detail/variant/variant_compare.h"
#include <type_traits>
#include <cstddef>
#include <cstdint>
#include <algorithm>
#include "rttr/detail/variant/variant_impl.h"

Go to the source code of this file.

Classes

class  rttr::variant
 The variant class allows to store data of any type and convert between these types transparently. More...
 

Namespaces

 rttr
 

Functions

template<class T >
rttr::variant_cast (const variant &operand)
 Returns a reference to the containing value as type T. More...
 
template<class T >
rttr::variant_cast (variant &operand)
 Returns a reference to the containing value as type T. More...
 
template<class T >
rttr::variant_cast (variant &&operand)
 Move the containing value from the variant into a type T. More...
 
template<class T >
const T * rttr::variant_cast (const variant *operand) noexcept
 Returns a pointer to the containing value with type T. More...
 
template<class T >
T * rttr::variant_cast (variant *operand) noexcept
 Returns a pointer to the containing value with type T. More...