Home
Random
Nearby
Log in
Settings
Donate Now
If Wikipedia is useful to you, please give today.
About Wikipedia
Disclaimers
Search
Unordered associative containers (C++): Difference between revisions
Article
Talk
Language
Watch
View history
Edit
Browse history interactively
← Previous edit
Next edit →
Content deleted
Content added
Visual
Wikitext
Revision as of 14:40, 23 May 2012
edit
Bramschoenmakers
(
talk
|
contribs
)
78
edits
m
Fix typo.
← Previous edit
Revision as of 08:39, 21 July 2012
edit
undo
146.232.186.52
(
talk
)
→
Custom hash functions
Next edit →
Line 204:
==Custom hash functions==
In order to use custom objects in std::unordered_map, a custom hash
functor
function
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;};