I have a question on how pointers to a custom object are handled when used as Keys in an map. More specifically if I define
std::map< CustomClass*, int &
C++ standard provided specialisation of std::less for pointers, so yes you can safely use them as map keys etc.
std::less