bluedalmatian
October 19th, 2007, 10:51 AM
If I declare a C++ map which uses pointers to an object as keys,
std::map<MyObject*,int>
when I search for a particular key, am I right in thinking it will match if the pointer points to the same memory address?
Thanks
std::map<MyObject*,int>
when I search for a particular key, am I right in thinking it will match if the pointer points to the same memory address?
Thanks