I can replace the actual implementation of std::hash
with my own definition of std::hash
in C++ 11 ?
I mean from my codebase, without touching the standard library.
I can't see any use for virtual function/polymorphism in this case, so I suppose that I can't alter the definition of std::hash anyway ?
Yes it's okay, and you don't have to modify the standard library in any way, just use template specialization: