Lines Matching full:variant
11 // <variant>
13 // template <class ...Types> class variant;
15 // constexpr variant(variant const&);
19 #include <variant>
79 // Don't throw from the copy constructor since variant's assignment in MakeEmptyT()
90 template <class Variant>
91 void makeEmpty(Variant& v) { in makeEmpty()
92 Variant v2(std::in_place_type<MakeEmptyT>); in makeEmpty()
104 using V = std::variant<int, long>; in test_copy_ctor_sfinae()
108 using V = std::variant<int, NoCopy>; in test_copy_ctor_sfinae()
112 using V = std::variant<int, MoveOnly>; in test_copy_ctor_sfinae()
116 using V = std::variant<int, MoveOnlyNT>; in test_copy_ctor_sfinae()
122 using V = std::variant<int, long>; in test_copy_ctor_sfinae()
126 using V = std::variant<int, NTCopy>; in test_copy_ctor_sfinae()
131 using V = std::variant<int, TCopy>; in test_copy_ctor_sfinae()
135 using V = std::variant<int, TCopyNTMove>; in test_copy_ctor_sfinae()
142 std::variant<int> v(std::in_place_index<0>, 42); in test_copy_ctor_basic()
143 std::variant<int> v2 = v; in test_copy_ctor_basic()
148 std::variant<int, long> v(std::in_place_index<1>, 42); in test_copy_ctor_basic()
149 std::variant<int, long> v2 = v; in test_copy_ctor_basic()
154 std::variant<NonT> v(std::in_place_index<0>, 42); in test_copy_ctor_basic()
156 std::variant<NonT> v2(v); in test_copy_ctor_basic()
161 std::variant<int, NonT> v(std::in_place_index<1>, 42); in test_copy_ctor_basic()
163 std::variant<int, NonT> v2(v); in test_copy_ctor_basic()
170 constexpr std::variant<int> v(std::in_place_index<0>, 42); in test_copy_ctor_basic()
172 constexpr std::variant<int> v2 = v; in test_copy_ctor_basic()
177 constexpr std::variant<int, long> v(std::in_place_index<1>, 42); in test_copy_ctor_basic()
179 constexpr std::variant<int, long> v2 = v; in test_copy_ctor_basic()
184 constexpr std::variant<TCopy> v(std::in_place_index<0>, 42); in test_copy_ctor_basic()
186 constexpr std::variant<TCopy> v2(v); in test_copy_ctor_basic()
191 constexpr std::variant<int, TCopy> v(std::in_place_index<1>, 42); in test_copy_ctor_basic()
193 constexpr std::variant<int, TCopy> v2(v); in test_copy_ctor_basic()
198 constexpr std::variant<TCopyNTMove> v(std::in_place_index<0>, 42); in test_copy_ctor_basic()
200 constexpr std::variant<TCopyNTMove> v2(v); in test_copy_ctor_basic()
205 constexpr std::variant<int, TCopyNTMove> v(std::in_place_index<1>, 42); in test_copy_ctor_basic()
207 constexpr std::variant<int, TCopyNTMove> v2(v); in test_copy_ctor_basic()
215 using V = std::variant<int, MakeEmptyT>; in test_copy_ctor_valueless_by_exception()
234 using V = std::variant<long, void*, const int>; in test_constexpr_copy_ctor_trivial()
261 using V = std::variant<long, NonTrivialCopyCtor, void*>; in test_constexpr_copy_ctor_non_trivial()