memory: add WP == UP comparison fn

This commit is contained in:
Vaxry 2025-01-24 01:31:47 +00:00
parent 006620eb29
commit 3411e5b42d

View file

@ -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_);
}