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.cpp41 struct MoveOnlyNT { struct
43 MoveOnlyNT(int v) : value(v) {} in MoveOnlyNT() argument
44 MoveOnlyNT(const MoveOnlyNT &) = delete;
45 MoveOnlyNT(MoveOnlyNT &&other) : value(other.value) { other.value = -1; } in MoveOnlyNT() argument
86 using V = std::variant<int, MoveOnlyNT>; in test_move_noexcept()
105 using V = std::variant<int, MoveOnlyNT>; in test_move_ctor_sfinae()
142 std::variant<MoveOnlyNT> v(std::in_place_index<0>, 42); in test_move_ctor_basic()
144 std::variant<MoveOnlyNT> v2(std::move(v)); in test_move_ctor_basic()
150 std::variant<int, MoveOnlyNT> v(std::in_place_index<1>, 42); in test_move_ctor_basic()
152 std::variant<int, MoveOnlyNT> v2(std::move(v)); in test_move_ctor_basic()
Dcopy.pass.cpp41 struct MoveOnlyNT { struct
42 MoveOnlyNT(const MoveOnlyNT &) = delete;
43 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() function
88 using V = std::variant<int, MoveOnlyNT>; in test_copy_ctor_sfinae()
/external/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
Dmove.pass.cpp47 struct MoveOnlyNT { struct
48 MoveOnlyNT(const MoveOnlyNT &) = delete;
49 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() argument
50 MoveOnlyNT &operator=(const MoveOnlyNT &) = delete;
51 MoveOnlyNT &operator=(MoveOnlyNT &&) = default;
105 using V = std::variant<MoveOnlyNT>; in test_move_assignment_noexcept()
134 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() argument
52 MoveOnlyNT &operator=(const MoveOnlyNT &) = default;
181 using V = std::variant<int, MoveOnlyNT>; in test_copy_assignment_sfinae()