nvwa::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() (const _Pointer &ptr1, const _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 nvwa::dereference_less::operator() ( const _Pointer &  ptr1,
const _Pointer &  ptr2 
) const [inline]

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated by  doxygen 1.6.2