Searched refs:MoveOnlyNT (Results 1 – 4 of 4) sorted by relevance
50 struct MoveOnlyNT { struct52 MoveOnlyNT(int v) : value(v) {} in MoveOnlyNT() argument53 MoveOnlyNT(const MoveOnlyNT &) = delete;54 MoveOnlyNT(MoveOnlyNT &&other) : value(other.value) { other.value = -1; } in MoveOnlyNT() function123 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()
50 struct MoveOnlyNT { struct51 MoveOnlyNT(const MoveOnlyNT &) = delete;52 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() argument125 using V = std::variant<int, MoveOnlyNT>; in test_copy_ctor_sfinae()
60 struct MoveOnlyNT { struct61 MoveOnlyNT(const MoveOnlyNT &) = delete;62 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() function63 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()
56 struct MoveOnlyNT { struct57 MoveOnlyNT(const MoveOnlyNT &) = delete;58 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() argument59 MoveOnlyNT &operator=(const MoveOnlyNT &) = default;239 using V = std::variant<int, MoveOnlyNT>; in test_copy_assignment_sfinae()