PStack  2.0
Stack trace printer for MSVC and GCC binaries
std::hash< psystem::shared_handle< T, kInvalidHandle > > Struct Template Reference

Forward the hash functor along to the underlying handle type for psystem::shared_handle. More...

#include <shared_handle.hpp>

Public Types

using shared_handle_type = psystem::shared_handle< T, kInvalidHandle >
 Convenient name for shared_handle.
 

Public Member Functions

size_t operator() (shared_handle_type const &value) const
 Invoke the hash functor. More...
 

Detailed Description

template<typename T, T kInvalidHandle>
struct std::hash< psystem::shared_handle< T, kInvalidHandle > >

Forward the hash functor along to the underlying handle type for psystem::shared_handle.

This is primarily useful for containers of handles.

Template Parameters
TThe handle type.
kInvalidHandleThe value of an "invalid" handle.

Member Function Documentation

template<typename T , T kInvalidHandle>
size_t std::hash< psystem::shared_handle< T, kInvalidHandle > >::operator() ( shared_handle_type const &  value) const
inline

Invoke the hash functor.

Parameters
[in]valueThe handle to obtain a hash for.
Returns
The hashed value of the handle.

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