I would like to know whether std::unordered_map< int, float > still has to hash the given integer to get to the value or just uses it straight away. I need to perform this operation very fast many times a second and as std::hash<int> isn't guaranteed to be the identity function, how would I go about redefining it? (obviously not using STL and writing my own containers is possible, but I doubt those written by me will be more efficient (likely much, much slower)).
Thanks!