I posted a similar question regarding using pointers as Keys on maps in C++ STL. How are pointers hashed in unordered_maps when used as Keys. More specifically if I define:
std::unordered_map< CustomClass*, int > foo;
Would the default C++ std::hash implementation work to handle these pointers? Is it safe to use? Is this good practice?