Searched refs:MoveOnlyNT (Results 1 – 4 of 4) sorted by relevance
41 struct MoveOnlyNT { struct43 MoveOnlyNT(int v) : value(v) {} in MoveOnlyNT() argument44 MoveOnlyNT(const MoveOnlyNT &) = delete;45 MoveOnlyNT(MoveOnlyNT &&other) : value(other.value) { other.value = -1; } in MoveOnlyNT() argument86 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()
41 struct MoveOnlyNT { struct42 MoveOnlyNT(const MoveOnlyNT &) = delete;43 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() function88 using V = std::variant<int, MoveOnlyNT>; in test_copy_ctor_sfinae()
47 struct MoveOnlyNT { struct48 MoveOnlyNT(const MoveOnlyNT &) = delete;49 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() argument50 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()
49 struct MoveOnlyNT { struct50 MoveOnlyNT(const MoveOnlyNT &) = delete;51 MoveOnlyNT(MoveOnlyNT &&) {} in MoveOnlyNT() argument52 MoveOnlyNT &operator=(const MoveOnlyNT &) = default;181 using V = std::variant<int, MoveOnlyNT>; in test_copy_assignment_sfinae()