May 2017
Intermediate to advanced
590 pages
17h 18m
English
This recipe covers hashing functionalities from the standard library. You should be familiar with the concepts of hashes and hash functions.
For the examples in this recipe, we will use the following class:
struct Item { int id; std::string name; double value; Item(int const id, std::string const & name, double const value) :id(id), name(name), value(value) {} bool operator==(Item const & other) const { return id == other.id && name == other.name && value == other.value; } };
Read now
Unlock full access