Electroneum
std::hash< output_data > Struct Template Reference

Public Member Functions

size_t operator() (const output_data &od) const
 

Detailed Description

template<>
struct std::hash< output_data >

Definition at line 59 of file blockchain_usage.cpp.

Member Function Documentation

◆ operator()()

size_t std::hash< output_data >::operator() ( const output_data od) const
inline

Definition at line 61 of file blockchain_usage.cpp.

62  {
63  const uint64_t data[2] = {od.amount, od.index};
64  crypto::hash h;
65  crypto::cn_fast_hash(data, 2 * sizeof(uint64_t), h);
66  return reinterpret_cast<const std::size_t &>(h);
67  }
unsigned __int64 uint64_t
Definition: stdint.h:136
void cn_fast_hash(const void *data, size_t length, char *hash)
POD_CLASS hash
Definition: hash.h:50
Here is the call graph for this function:

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