|
constexpr bool | operator< (monostate, monostate) noexcept |
|
constexpr bool | operator> (monostate, monostate) noexcept |
|
constexpr bool | operator<= (monostate, monostate) noexcept |
|
constexpr bool | operator>= (monostate, monostate) noexcept |
|
constexpr bool | operator== (monostate, monostate) noexcept |
|
constexpr bool | operator!= (monostate, monostate) noexcept |
|
template<size_t I, class... TS> |
const variant_alternative_t< I, variant< TS... > > & | get (const variant< TS... > &var) |
| Gets the value of the given Shims::variant var as the alternative with index I .
|
|
template<size_t I, class... TS> |
variant_alternative_t< I, variant< TS... > > & | get (variant< TS... > &var) |
| Gets the value of the given Shims::variant var as the alternative with index I .
|
|
template<size_t I, class... TS> |
variant_alternative_t< I, variant< TS... > > | get (variant< TS... > &&var) |
| Gets the value of the given Shims::variant var as the alternative with index I .
|
|
template<class T, class... TS> |
const T & | get (const variant< TS... > &var) |
| Gets the value of the given Shims::variant var as the alternative with type T .
|
|
template<class T, class... TS> |
T & | get (variant< TS... > &var) |
| Gets the value of the given Shims::variant var as the alternative with type T .
|
|
template<class T, class... TS> |
T | get (variant< TS... > &&var) |
| Gets the value of the given Shims::variant var as the alternative with type T .
|
|
template<size_t I, class... TS> |
std::add_pointer< variant_alternative_t< I, variant< TS... > > >::type | get_if (variant< TS... > *pvar) noexcept |
| Tries to get the value of the given Shims::variant pointer pvar as the alternative with index I .
|
|
template<class T, class... TS> |
std::add_pointer< constT >::type | get_if (const variant< TS... > *pvar) noexcept |
| Tries to get the value of the given Shims::variant pointer pvar as the alternative with type T .
|
|
template<class T, class... TS> |
std::add_pointer< T >::type | get_if (variant< TS... > *pvar) noexcept |
| Tries to get the value of the given Shims::variant pointer pvar as the alternative with type T .
|
|
template<class T, class... TS> |
bool | holds_alternative (const variant< TS... > &var) noexcept |
| Gets whether the Shims::variant var holds an instance of type T .
|
|
template<class VISITOR, class VARIANT> |
auto | visit (VISITOR &&visitor, VARIANT &&var) -> decltype(visitor(get< 0 >(var))) |
| Visits the given Shims::variant var. Cvb::Shims::visit can only visit one variant (not multiple like std::visit).
|
|
template<class... TS> |
bool | operator== (const variant< TS... > &lhs, const variant< TS... > &rhs) |
| Equality operator for Shims::variant objects.
|
|
template<class... TS> |
bool | operator!= (const variant< TS... > &lhs, const variant< TS... > &rhs) |
| Inequality operator for Shims::variant objects.
|
|
template<class... TS> |
bool | operator< (const variant< TS... > &lhs, const variant< TS... > &rhs) |
| Less than operator for Shims::variant objects.
|
|
template<class... TS> |
bool | operator<= (const variant< TS... > &lhs, const variant< TS... > &rhs) |
| Less-than or equal operator for Shims::variant object.
|
|
template<class... TS> |
bool | operator> (const variant< TS... > &lhs, const variant< TS... > &rhs) |
| Greater-than operator for Shims::variant object.
|
|
template<class... TS> |
bool | operator>= (const variant< TS... > &lhs, const variant< TS... > &rhs) |
| Greater-than or equal operator for Shims::variant object.
|
|