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

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

#include <unique_handle.hpp>

Public Types

using unique_handle_type = psystem::unique_handle< T, D, kInvalidHandle >
 Convenient name for shared_handle.
 

Public Member Functions

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

Detailed Description

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

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

This is primarily useful for containers of handles.

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

Member Function Documentation

template<typename T , typename D , T kInvalidHandle>
size_t std::hash< psystem::unique_handle< T, D, kInvalidHandle > >::operator() ( unique_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: