Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBcompareOper Class Template Reference

Compare function object - map to operator= and operator<. More...

#include <CTBcompare.hxx>

List of all members.

Public Methods

int operator() (const T &v1, const T &v2)


Detailed Description

template<class T>
class CTBcompareOper< T >

Compare function object - map to operator= and operator<.

This class provides a function object for the lexical comparison of two objects of class T, implemented in terms of the = and < operator of class T. It's used for example with associative containers like CTBmap.

Definition at line 18 of file CTBcompare.hxx.


Member Function Documentation

template<class T>
int CTBcompareOper< T >::operator() const T & v1,
const T & v2
[inline]
 

Returns 0 if v1 and v2 are equal, a positive number if v1 is larger than v2, and a negative number if v1 is smaller than v2.

Definition at line 30 of file CTBcompare.icc.


The documentation for this class was generated from the following files:
Generated at Fri Oct 24 18:13:35 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001