Lines Matching refs:MoveOnlyInt
20 class MoveOnlyInt {
22 explicit MoveOnlyInt(int data = 1) : data_(data) {} in data_()
23 MoveOnlyInt(const MoveOnlyInt& other) = delete;
24 MoveOnlyInt& operator=(const MoveOnlyInt& other) = delete;
25 MoveOnlyInt(MoveOnlyInt&& other) : data_(other.data_) { other.data_ = 0; } in MoveOnlyInt() function
26 ~MoveOnlyInt() { data_ = 0; } in ~MoveOnlyInt()
28 MoveOnlyInt& operator=(MoveOnlyInt&& other) {
34 friend bool operator==(const MoveOnlyInt& lhs, const MoveOnlyInt& rhs) {
38 friend bool operator!=(const MoveOnlyInt& lhs, const MoveOnlyInt& rhs) {
42 friend bool operator<(const MoveOnlyInt& lhs, int rhs) {
46 friend bool operator<(int lhs, const MoveOnlyInt& rhs) {
50 friend bool operator<(const MoveOnlyInt& lhs, const MoveOnlyInt& rhs) {
54 friend bool operator>(const MoveOnlyInt& lhs, const MoveOnlyInt& rhs) {
58 friend bool operator<=(const MoveOnlyInt& lhs, const MoveOnlyInt& rhs) {
62 friend bool operator>=(const MoveOnlyInt& lhs, const MoveOnlyInt& rhs) {