QxOrm  1.4.5
C++ Object Relational Mapping library
qx::memory::dereference_less Struct Reference

#include <cont_ptr_utils.h>

List of all members.

Public Member Functions

template<typename _Pointer >
bool operator() (_Pointer __ptr1, _Pointer __ptr2) const

Detailed Description

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.


Member Function Documentation

template<typename _Pointer >
bool qx::memory::dereference_less::operator() ( _Pointer  __ptr1,
_Pointer  __ptr2 
) const [inline]

Definition at line 92 of file cont_ptr_utils.h.


The documentation for this struct was generated from the following file: