|
JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
|
Equality functor for std::weak_ptr<T>.
More...
#include <jh/concurrent/observe_pool.h>
Public Member Functions | |
| bool | operator() (const std::weak_ptr< T > &lhs, const std::weak_ptr< T > &rhs) const noexcept |
Equality functor for std::weak_ptr<T>.
Behavior:
T::operator==(). Purpose:
Allows weak pointers to be compared by the logical content of their targets, ensuring that semantically identical live objects match in pooling structures. Expired entries are safely treated as distinct.
| T | The managed type, which must satisfy equality comparing. |