Home
last modified time | relevance | path

Searched refs:TCopyNTMove (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
H A Dcopy.pass.cpp67 struct TCopyNTMove { struct
68 constexpr TCopyNTMove(int v) : value(v) {} in TCopyNTMove() argument
69 TCopyNTMove(const TCopyNTMove&) = default;
70 TCopyNTMove(TCopyNTMove&& that) : value(that.value) { that.value = -1; } in TCopyNTMove() function
74 static_assert(std::is_trivially_copy_constructible<TCopyNTMove>::value, ""); argument
138 using V = std::variant<int, TCopyNTMove>; in test_copy_ctor_sfinae()
203 constexpr std::variant<TCopyNTMove> v(std::in_place_index<0>, 42); in test_copy_ctor_basic()
205 constexpr std::variant<TCopyNTMove> v2(v); in test_copy_ctor_basic()
210 constexpr std::variant<int, TCopyNTMove> v(std::in_place_index<1>, 42); in test_copy_ctor_basic()
212 constexpr std::variant<int, TCopyNTMove> v2(v); in test_copy_ctor_basic()