为资源代理添加==运算符
This commit is contained in:
@@ -124,6 +124,10 @@ namespace ling {
|
||||
T *operator->() {
|
||||
return resource;
|
||||
}
|
||||
|
||||
bool operator==(const T *const value) {
|
||||
return this->resource == value;
|
||||
}
|
||||
};
|
||||
|
||||
/// 资源的只读代理
|
||||
@@ -172,6 +176,10 @@ namespace ling {
|
||||
const T *operator->() const {
|
||||
return resource;
|
||||
}
|
||||
|
||||
bool operator==(const T *const value) {
|
||||
return this->resource == value;
|
||||
}
|
||||
};
|
||||
} // ling
|
||||
|
||||
|
||||
Reference in New Issue
Block a user