|
template<typename... > |
class | variant |
|
template<typename... Choices> |
bool | operator== (const variant< Choices... > &, const variant< Choices... > &) |
|
template<size_t I, typename... Choices> |
impl::get_const_reference_at_t< I, Choices... > | get (const variant< Choices... > &) |
|
template<size_t I, typename... Choices> |
variant_alternative_t< I, variant< Choices... > > & | get (variant< Choices... > &) |
|
template<typename T , typename... Choices> |
const T & | get (const variant< Choices... > &) |
|
template<typename T , typename... Choices> |
T & | get (variant< Choices... > &) |
|
template<typename T , typename... Choices> |
T && | get (variant< Choices... > &&) |
|
template<size_t I, typename... Choices> |
std::add_const< variant_alternative_t< I, variant< Choices... > > >::type * | get_if (const variant< Choices... > &) |
|
template<size_t I, typename... Choices> |
variant_alternative_t< I, variant< Choices... > > * | get_if (variant< Choices... > &) |
|
template<typename T , typename... Choices> |
const T * | get_if (const variant< Choices... > &) |
|
template<typename T , typename... Choices> |
T * | get_if (variant< Choices... > &) |
|
template<typename... Types>
class shaka::variant< Types >
This is a look-alike for the std::variant type. The most common usages of this type have been implemented, but this is not a general implementation. For example, this doesn't throw exceptions and instead asserts.
- See also
- https://en.cppreference.com/w/cpp/utility/variant
Definition at line 36 of file variant.h.