Hashing functor taking a Ptr
and returning a std::size_t
.
More...
#include "ptr.h"
Public Member Functions | |
std::size_t | operator() (ns3::Ptr< T > p) const |
The functor. | |
Hashing functor taking a Ptr
and returning a std::size_t
.
For use with unordered_map
and unordered_set
.
Ptr
is used in a container the lifetime of the underlying object is at least as long as the container. In other words, you need to remove the object from the container when you are done with it, otherwise the object will persist until the container itself is deleted.T | [deduced] The type held by the Ptr |
|
inline |
The functor.
p | The Ptr value to hash. |
Definition at line 768 of file ptr.h.
References ns3::PeekPointer().