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

#include <cryptonote_basic.h>

Public Member Functions

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

Detailed Description

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

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/cryptonote_basic/cryptonote_basic.h