mirror of
https://github.com/hyprwm/hyprutils.git
synced 2025-01-27 17:39:49 +01:00
memory: add WP == UP comparison fn
This commit is contained in:
parent
006620eb29
commit
3411e5b42d
1 changed files with 4 additions and 0 deletions
|
@ -149,6 +149,10 @@ namespace Hyprutils {
|
|||
return impl_ == rhs.impl_;
|
||||
}
|
||||
|
||||
bool operator==(const CUniquePointer<T>& rhs) const {
|
||||
return impl_ == rhs.impl_;
|
||||
}
|
||||
|
||||
bool operator()(const CWeakPointer& lhs, const CWeakPointer& rhs) const {
|
||||
return reinterpret_cast<uintptr_t>(lhs.impl_) < reinterpret_cast<uintptr_t>(rhs.impl_);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue