No boost, just plain STL please.
I have a class Foo* mapping to a set of pointers of class ID.
and I need to map a pointer to an instance of ID to a FOO class.
say I have this function:
void FindXXX(const ID* pID)
{
/*find the containing FOO class quickly, but not at expense of an ugly code*/
}
right now I map each ID* to FOO* thus having something like that
map myMap; which I think is kind of ugly and redundant.
Please suggest
I assume you have something like this:
Why would that be ugly?