Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
H A Dmove.pass.cpp43 struct MoveOnlyNT { struct
45 MoveOnlyNT(int v) : value(v) {} in MoveOnlyNT() argument
46 MoveOnlyNT(const MoveOnlyNT &) = delete;
47 MoveOnlyNT(MoveOnlyNT &&other) : value(other.value) { other.value = -1; } in MoveOnlyNT() argument
116 using V = std::variant<int, MoveOnlyNT>; in test_move_noexcept()
135 using V = std::variant<int, MoveOnlyNT>; in test_move_ctor_sfinae()
196 std::variant<MoveOnlyNT> v(std::in_place_index<0>, 42); in test_move_ctor_basic()
198 std::variant<MoveOnlyNT> v2(std::move(v)); in test_move_ctor_basic()
204 std::variant<int, MoveOnlyNT> v(std::in_place_index<1>, 42); in test_move_ctor_basic()
206 std::variant<int, MoveOnlyNT> v2(std::move(v)); in test_move_ctor_basic()
H A Dcopy.pass.cpp43 struct MoveOnlyNT { struct
44 MoveOnlyNT(const MoveOnlyNT &) = delete;
45 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() function
118 using V = std::variant<int, MoveOnlyNT>; in test_copy_ctor_sfinae()
/llvm-project-15.0.7/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
H A Dmove.pass.cpp48 struct MoveOnlyNT { struct
49 MoveOnlyNT(const MoveOnlyNT &) = delete;
50 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() function
51 MoveOnlyNT &operator=(const MoveOnlyNT &) = delete;
52 MoveOnlyNT &operator=(MoveOnlyNT &&) = default;
160 using V = std::variant<MoveOnlyNT>; in test_move_assignment_noexcept()
187 using V = std::variant<int, MoveOnlyNT>; in test_move_assignment_sfinae()
H A Dcopy.pass.cpp45 struct MoveOnlyNT { struct
46 MoveOnlyNT(const MoveOnlyNT &) = delete;
47 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() argument
48 MoveOnlyNT &operator=(const MoveOnlyNT &) = default;
228 using V = std::variant<int, MoveOnlyNT>; in test_copy_assignment_sfinae()