RavEngine
Loading...
Searching...
No Matches
WeakPtrKey< T > Class Template Reference

#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
 

Detailed Description

template<class T>
class WeakPtrKey< T >

For storing WeakRefs in containers

Member Function Documentation

◆ hash()

template<class T >
constexpr std::size_t WeakPtrKey< T >::hash ( ) const
inlineconstexpr

Hash the pointer value of the original address

Returns
hash code for this object

The documentation for this class was generated from the following file: