Lines Matching refs:CopyOnlyInt
14 class CopyOnlyInt {
16 explicit CopyOnlyInt(int data = 1) : data_(data) {} in data_()
17 CopyOnlyInt(const CopyOnlyInt& other) = default;
18 ~CopyOnlyInt() { data_ = 0; } in ~CopyOnlyInt()
20 friend bool operator==(const CopyOnlyInt& lhs, const CopyOnlyInt& rhs) {
24 friend bool operator!=(const CopyOnlyInt& lhs, const CopyOnlyInt& rhs) {
28 friend bool operator<(const CopyOnlyInt& lhs, const CopyOnlyInt& rhs) {
32 friend bool operator>(const CopyOnlyInt& lhs, const CopyOnlyInt& rhs) {
36 friend bool operator<=(const CopyOnlyInt& lhs, const CopyOnlyInt& rhs) {
40 friend bool operator>=(const CopyOnlyInt& lhs, const CopyOnlyInt& rhs) {
49 CopyOnlyInt(CopyOnlyInt&&) = delete;
50 CopyOnlyInt& operator=(CopyOnlyInt&) = delete;