Home
last modified time | relevance | path

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

/external/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
Dmove.pass.cpp47 struct MoveOnlyNT { struct
49 MoveOnlyNT(int v) : value(v) {} in MoveOnlyNT() function
50 MoveOnlyNT(const MoveOnlyNT &) = delete;
51 MoveOnlyNT(MoveOnlyNT &&other) : value(other.value) { other.value = -1; } in MoveOnlyNT() function
120 using V = std::variant<int, MoveOnlyNT>; in test_move_noexcept()
139 using V = std::variant<int, MoveOnlyNT>; in test_move_ctor_sfinae()
200 std::variant<MoveOnlyNT> v(std::in_place_index<0>, 42); in test_move_ctor_basic()
202 std::variant<MoveOnlyNT> v2(std::move(v)); in test_move_ctor_basic()
208 std::variant<int, MoveOnlyNT> v(std::in_place_index<1>, 42); in test_move_ctor_basic()
210 std::variant<int, MoveOnlyNT> v2(std::move(v)); in test_move_ctor_basic()
Dcopy.pass.cpp47 struct MoveOnlyNT { struct
48 MoveOnlyNT(const MoveOnlyNT &) = delete;
49 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() function
122 using V = std::variant<int, MoveOnlyNT>; in test_copy_ctor_sfinae()
/external/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
Dmove.pass.cpp50 struct MoveOnlyNT { struct
52 MoveOnlyNT(int v) : value(v) {} in MoveOnlyNT() function
53 MoveOnlyNT(const MoveOnlyNT &) = delete;
54 MoveOnlyNT(MoveOnlyNT &&other) : value(other.value) { other.value = -1; } in MoveOnlyNT() argument
123 using V = std::variant<int, MoveOnlyNT>; in test_move_noexcept()
142 using V = std::variant<int, MoveOnlyNT>; in test_move_ctor_sfinae()
203 std::variant<MoveOnlyNT> v(std::in_place_index<0>, 42); in test_move_ctor_basic()
205 std::variant<MoveOnlyNT> v2(std::move(v)); in test_move_ctor_basic()
211 std::variant<int, MoveOnlyNT> v(std::in_place_index<1>, 42); in test_move_ctor_basic()
213 std::variant<int, MoveOnlyNT> v2(std::move(v)); in test_move_ctor_basic()
Dcopy.pass.cpp50 struct MoveOnlyNT { struct
51 MoveOnlyNT(const MoveOnlyNT &) = delete;
52 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() argument
125 using V = std::variant<int, MoveOnlyNT>; in test_copy_ctor_sfinae()
/external/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
Dmove.pass.cpp60 struct MoveOnlyNT { struct
61 MoveOnlyNT(const MoveOnlyNT &) = delete;
62 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() argument
63 MoveOnlyNT &operator=(const MoveOnlyNT &) = delete;
64 MoveOnlyNT &operator=(MoveOnlyNT &&) = default;
172 using V = std::variant<MoveOnlyNT>; in test_move_assignment_noexcept()
199 using V = std::variant<int, MoveOnlyNT>; in test_move_assignment_sfinae()
Dcopy.pass.cpp56 struct MoveOnlyNT { struct
57 MoveOnlyNT(const MoveOnlyNT &) = delete;
58 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() function
59 MoveOnlyNT &operator=(const MoveOnlyNT &) = default;
239 using V = std::variant<int, MoveOnlyNT>; in test_copy_assignment_sfinae()
/external/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
Dmove.pass.cpp52 struct MoveOnlyNT { struct
53 MoveOnlyNT(const MoveOnlyNT &) = delete;
54 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() argument
55 MoveOnlyNT &operator=(const MoveOnlyNT &) = delete;
56 MoveOnlyNT &operator=(MoveOnlyNT &&) = default;
164 using V = std::variant<MoveOnlyNT>; in test_move_assignment_noexcept()
191 using V = std::variant<int, MoveOnlyNT>; in test_move_assignment_sfinae()
Dcopy.pass.cpp49 struct MoveOnlyNT { struct
50 MoveOnlyNT(const MoveOnlyNT &) = delete;
51 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() function
52 MoveOnlyNT &operator=(const MoveOnlyNT &) = default;
232 using V = std::variant<int, MoveOnlyNT>; in test_copy_assignment_sfinae()