Bifrost SDK
Bifrost SDK documentation
std::hash< Amino::Ptr< T > > Struct Template Reference

Hash functor for Amino::Ptr. More...

#include <Ptr.h>

Public Types

using argument_type = Amino::Ptr< T >
 
using result_type = size_t
 

Public Member Functions

result_type operator() (const argument_type &ptr) const noexcept
 

Detailed Description

template<class T>
struct std::hash< Amino::Ptr< T > >

Hash functor for Amino::Ptr.

This is a specialization of std::hash for Amino::Ptr<T>. It allows users users to obtain a default functor for the unordered std containers. The hash function is based on the pointer value (i.e. Amino::Ptr<T>::get()).

Template Parameters
Tthe Amino::Ptr element_type

Definition at line 2091 of file Ptr.h.

Member Typedef Documentation

◆ argument_type

template<class T >
using std::hash< Amino::Ptr< T > >::argument_type = Amino::Ptr<T>

Definition at line 2092 of file Ptr.h.

◆ result_type

template<class T >
using std::hash< Amino::Ptr< T > >::result_type = size_t

Definition at line 2093 of file Ptr.h.

Member Function Documentation

◆ operator()()

template<class T >
result_type std::hash< Amino::Ptr< T > >::operator() ( const argument_type ptr) const
inlinenoexcept

Definition at line 2095 of file Ptr.h.