Class Variant

Class Documentation

class Variant

Public Functions

inline explicit Variant(ObjectPoolGroup *group_)
inline ~Variant()
inline  Variant (Variant &&other) SPIRV_CROSS_NOEXCEPT
Variant(const Variant &variant) = delete
inline Variant & operator= (Variant &&other) SPIRV_CROSS_NOEXCEPT
inline Variant &operator=(const Variant &other)
inline void set(IVariant *val, Types new_type)
template<typename T, typename ...Ts>
inline T *allocate_and_set(Types new_type, Ts&&... ts)
template<typename T>
inline T &get()
template<typename T>
inline const T &get() const
inline Types get_type() const
inline ID get_id() const
inline bool empty() const
inline void reset()
inline void set_allow_type_rewrite()