Difference between revisions of "CPP/C++0x/Hash"
From ProgrammingExamples
< CPP
Daviddoria (Talk | contribs) (Created page with '==Hash.cpp== <source lang="cpp"> #include <iostream> #include <functional> //hash int main(int argc, char* argv[]) { std::hash<const char*> H; std::cout << "foo -> " << H("…') |
(No difference)
|
Revision as of 08:19, 23 June 2010
Hash.cpp
#include <iostream> #include <functional> //hash int main(int argc, char* argv[]) { std::hash<const char*> H; std::cout << "foo -> " << H("foo") << std::endl; std::cout << "bar -> " << H("bar") << std::endl; return 0; }