Reputation: 1007
If I want to use the hash function object provided in STL, which header file I should include on Linux? e.g. hash Hf;
Upvotes: 1
Views: 3476
Reputation: 52549
#include <hash_map>
on some Linux distros it's available here:
#include <ext/hash_map>
More info here. The hash_map is currently not part of the official STL but it's in TR1 as <unordered_map>
.
Upvotes: 3
Reputation: 14441
Is this what you are looking for:
Definition Defined in the headers hash_map and hash_set, and in the backward-compatibility headers hash_map.h and hash_set.h. This class is an SGI extension; it is not part of the C++ standard.
http://www.sgi.com/tech/stl/hash.html
Upvotes: 0