Lines Matching refs:MoveOnly
942 class MoveOnly {
944 explicit MoveOnly(int i) : i_(i) {}
945 MoveOnly(const MoveOnly&) = delete;
946 MoveOnly(MoveOnly&&) = default;
947 MoveOnly& operator=(const MoveOnly&) = delete;
948 MoveOnly& operator=(MoveOnly&&) = default;
950 bool operator==(const MoveOnly& other) const { return i_ == other.i_; }
951 bool operator!=(const MoveOnly& other) const { return i_ != other.i_; }
952 bool operator<(const MoveOnly& other) const { return i_ < other.i_; }
953 bool operator<=(const MoveOnly& other) const { return i_ <= other.i_; }
954 bool operator>(const MoveOnly& other) const { return i_ > other.i_; }
955 bool operator>=(const MoveOnly& other) const { return i_ >= other.i_; }
962 MOCK_METHOD1(Call, void(MoveOnly));
971 MoveOnly m{0};
975 helper.Call(MoveOnly(0));
977 helper.Call(MoveOnly(1));
979 helper.Call(MoveOnly(0));
981 helper.Call(MoveOnly(-1));
983 helper.Call(MoveOnly(0));
985 helper.Call(MoveOnly(1));