Home
last modified time | relevance | path

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

/external/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
Dmove.pass.cpp50 struct MoveOnlyNT { struct
52 MoveOnlyNT(int v) : value(v) {} in MoveOnlyNT() argument
53 MoveOnlyNT(const MoveOnlyNT &) = delete;
54 MoveOnlyNT(MoveOnlyNT &&other) : value(other.value) { other.value = -1; } in MoveOnlyNT() function
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() function
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() argument
59 MoveOnlyNT &operator=(const MoveOnlyNT &) = default;
239 using V = std::variant<int, MoveOnlyNT>; in test_copy_assignment_sfinae()