Electroneum
std::hash< cryptonote::account_public_address > Struct Template Reference

#include <cryptonote_basic.h>

Public Member Functions

std::size_t operator() (const cryptonote::account_public_address &addr) const
 

Detailed Description

template<>
struct std::hash< cryptonote::account_public_address >

Definition at line 526 of file cryptonote_basic.h.

Member Function Documentation

◆ operator()()

std::size_t std::hash< cryptonote::account_public_address >::operator() ( const cryptonote::account_public_address addr) const
inline

Definition at line 528 of file cryptonote_basic.h.

529  {
530  // https://stackoverflow.com/a/17017281
531  size_t res = 17;
532  res = res * 31 + hash<crypto::public_key>()(addr.m_spend_public_key);
533  res = res * 31 + hash<crypto::public_key>()(addr.m_view_public_key);
534  return res;
535  }
const char * res
Definition: hmac_keccak.cpp:41

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