dereference_less Struct Reference

Functor to compare objects pointed by a container of pointers. More...

#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;


Member Function Documentation

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


The documentation for this struct was generated from the following file:
Generated on Mon Dec 31 15:07:33 2007 for Nvwa by  doxygen 1.5.1