Functor to compare objects pointed by a container of pointers. More...
#include <cont_ptr_utils.h>
Public Member Functions | |
template<typename _Pointer > | |
bool | operator() (const _Pointer &ptr1, const _Pointer &ptr2) const |
Functor to compare objects pointed by a container of pointers.
vector<Object*> v; ... sort(v.begin(), v.end(), dereference_less());
or
set<Object*, dereference_less> s;
bool nvwa::dereference_less::operator() | ( | const _Pointer & | ptr1, | |
const _Pointer & | ptr2 | |||
) | const [inline] |