Lines Matching refs:MoveOnlyInt
17 class MoveOnlyInt {
19 explicit MoveOnlyInt(int data = 1) : data_(data) {} in data_()
20 MoveOnlyInt(MoveOnlyInt&& other) : data_(other.data_) { other.data_ = 0; } in MoveOnlyInt() function
22 MoveOnlyInt(const MoveOnlyInt&) = delete;
23 MoveOnlyInt& operator=(const MoveOnlyInt&) = delete;
25 ~MoveOnlyInt();
27 MoveOnlyInt& operator=(MoveOnlyInt&& other) {
33 friend bool operator==(const MoveOnlyInt& lhs,
34 const MoveOnlyInt& rhs) = default;
35 friend auto operator<=>(const MoveOnlyInt& lhs,
36 const MoveOnlyInt& rhs) = default;
38 friend bool operator==(const MoveOnlyInt& lhs, int rhs) {
41 friend bool operator==(int lhs, const MoveOnlyInt& rhs) {
44 friend auto operator<=>(const MoveOnlyInt& lhs, int rhs) {
47 friend auto operator<=>(int lhs, const MoveOnlyInt& rhs) {