Electroneum
Loading...
Searching...
No Matches
std::hash< ancestor > Struct Reference

Public Member Functions

size_t operator() (const ancestor &a) const

Detailed Description

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:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/blockchain_utilities/blockchain_ancestry.cpp