Top "Stdhash" questions

c++11 library to ease hashing of user-defined types

Why is std::hash a struct instead of a function?

Standard library implements std::hash as a template struct that is specialized for different types. It is used like this: #…

c++ c++11 std c++-standard-library stdhash
Unexpected collision with std::hash

I know hashing infinite number of string into 32b int must generate collision, but I expect from hashing function some …

c++ visual-studio-2010 hash hash-collision stdhash
Why std::hash<int> seems to be identity function

#include <iostream> int main() { std::hash<int> hash_f; std::cout << hash_f(0) <&…

c++ debugging c++11 identity stdhash
Can I override std::hash?

I can replace the actual implementation of std::hash with my own definition of std::hash in C++ 11 ? I mean …

c++ c++11 hashtable stdhash