Public Types | Public Member Functions | List of all members
std::hash< art::Ptr< T > > Struct Template Reference

#include <Ptr.h>

Public Types

using ptr_t = art::Ptr< T >
 
using key_t = typename ptr_t::key_type
 

Public Member Functions

size_t operator() (ptr_t const &p) const noexcept
 

Detailed Description

template<typename T>
struct std::hash< art::Ptr< T > >

Definition at line 401 of file Ptr.h.

Member Typedef Documentation

template<typename T >
using std::hash< art::Ptr< T > >::key_t = typename ptr_t::key_type

Definition at line 403 of file Ptr.h.

template<typename T >
using std::hash< art::Ptr< T > >::ptr_t = art::Ptr<T>

Definition at line 402 of file Ptr.h.

Member Function Documentation

template<typename T >
size_t std::hash< art::Ptr< T > >::operator() ( ptr_t const &  p) const
inlinenoexcept

Definition at line 406 of file Ptr.h.

407  {
408  return std::hash<art::ProductID>{}(p.id()) ^ std::hash<key_t>{}(p.key());
409  }
p
Definition: test.py:223

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