Bitcoin ABC 0.30.3
P2P Digital Currency
|
Implementation of Hash named requirement for types that internally store a byte array. More...
#include <bytevectorhash.h>
Public Member Functions | |
ByteVectorHash () | |
size_t | operator() (const std::vector< uint8_t > &input) const |
Private Attributes | |
uint64_t | m_k0 |
uint64_t | m_k1 |
Implementation of Hash named requirement for types that internally store a byte array.
This may be used as the hash function in std::unordered_set or std::unordered_map over such types. Internally, this uses a random instance of SipHash-2-4.
Definition at line 17 of file bytevectorhash.h.
ByteVectorHash::ByteVectorHash | ( | ) |
Definition at line 9 of file bytevectorhash.cpp.
size_t ByteVectorHash::operator() | ( | const std::vector< uint8_t > & | input | ) | const |
|
private |
Definition at line 19 of file bytevectorhash.h.
|
private |
Definition at line 19 of file bytevectorhash.h.