Electroneum
std::hash< ancestor > Struct Template Reference

Public Member Functions

size_t operator() (const ancestor &a) const
 

Detailed Description

template<>
struct std::hash< ancestor >

Definition at line 74 of file blockchain_ancestry.cpp.

Member Function Documentation

◆ operator()()

size_t std::hash< ancestor >::operator() ( const ancestor a) const
inline

Definition at line 76 of file blockchain_ancestry.cpp.

77  {
78  return a.amount ^ a.offset; // not that bad, since amount almost always have a high bit set, and offset doesn't
79  }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1124

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