Utils::PtrLess< T > Struct Template Reference

#include <utils.h>

List of all members.


Detailed Description

template<typename T>
struct Utils::PtrLess< T >

Simple generic function object for usage in standard containers, where pointer types are stored, but actual object comparisons are needed.

Usage:

 std::set<MyType*, PtrLess<MyType> > myset;

Definition at line 420 of file utils.h.


Public Member Functions

bool operator() (const T *const &x, const T *const &y) const
bool operator() (const T &x, const T &y) const

Member Function Documentation

template<typename T>
bool Utils::PtrLess< T >::operator() const T &  x,
const T &  y
const [inline]
 

Definition at line 424 of file utils.h.

template<typename T>
bool Utils::PtrLess< T >::operator() const T *const &  x,
const T *const &  y
const [inline]
 

Definition at line 421 of file utils.h.


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