Unordered associative containers (C++): Difference between revisions

Content deleted Content added
m Fix typo.
Line 204:
 
==Custom hash functions==
In order to use custom objects in std::unordered_map, a custom hash functorfunction must be defined. This function takes a const reference to the custom type and returns a size_t
<source lang="cpp">
struct X{int i,j,k;};