|
RavEngine
|
#include <WeakRef.hpp>
Public Member Functions | |
| WeakPtrKey (std::weak_ptr< T > wptr) | |
| WeakPtrKey (std::shared_ptr< T > sptr) | |
| constexpr bool | operator< (const WeakPtrKey< T > &other) const |
| constexpr bool | operator== (const WeakPtrKey< T > &other) const |
| constexpr std::size_t | hash () const |
| std::weak_ptr< T > | get_weak () const |
| std::shared_ptr< T > | lock () const |
For storing WeakRefs in containers
|
inlineconstexpr |
Hash the pointer value of the original address