Lines Matching refs:variant
20 #include <variant>
69 variant_size_of<Types...> variant_size_test(const std::variant<Types...> &);
72 variant_index_of<T, Types...> variant_index_test(const T &, const std::variant<Types...> &);
74 // variant_index_of_v is the count of the variant V's types.
78 // If T is one type of the variant V, variant_index_of_v is the index. If not, variant_index_of_v is the size.
83 * Extend the template<typename _Tp, typename... _Types> std::get_if(variant<_Types...>*) function to support these:
90 std::enable_if_t<same_in_v<T, Types...>, T *> get_if(std::variant<Types...> *input)
96 std::enable_if_t<same_in_v<T, Types...>, const T *> get_if(const std::variant<Types...> *input)
103 std::add_pointer_t<std::variant_alternative_t<NP, std::variant<Types...>>>>
104 get_if(std::variant<Types...> *input)
111 std::add_pointer_t<const std::variant_alternative_t<NP, std::variant<Types...>>>>
112 get_if(const std::variant<Types...> *input)
119 std::variant<Types...> *input)
127 const std::variant<Types...> *input)