QxOrm
1.5.0
C++ Object Relational Mapping library
|
#include <cont_ptr_utils.h>
Public Member Functions | |
template<typename _Pointer > | |
bool | operator() (_Pointer __ptr1, _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;
Definition at line 89 of file cont_ptr_utils.h.
bool qx::memory::dereference_less::operator() | ( | _Pointer | __ptr1, |
_Pointer | __ptr2 | ||
) | const [inline] |
Definition at line 92 of file cont_ptr_utils.h.