[C++] How should I compare pairs of pointers (for sort predicate)
- by conradlee
I have a STL container full of billions of the following objects
pair
I need some function of the following form
/*returns items sorted biggest first */
bool sortPredicate (SomeClass *two, SomeClass *one)
{
return ???;
}
Is there some trick I can use to very quickly compare pairs of pointers?