| 133 | return !!obj; |
| 134 | } |
| 135 | bool operator==(const StateRef<T> &other) const |
| 136 | { |
| 137 | if (this->id != other.id) |
| 138 | { |
| 139 | return false; |
| 140 | } |
| 141 | return true; |
| 142 | } |
| 143 | bool operator!=(const StateRef<T> &other) const { return !(*this == other); } |
| 144 | bool operator==(const sp<T> &other) const |
| 145 | { |