Bitcoin Core 28.99.0
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< unsigned char > &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 11 of file bytevectorhash.cpp.
size_t ByteVectorHash::operator() | ( | const std::vector< unsigned char > & | input | ) | const |
|
private |
Definition at line 20 of file bytevectorhash.h.
|
private |
Definition at line 20 of file bytevectorhash.h.