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

CTBcompareFunc Class Template Reference

Compare function object - map to Compare() function. More...

#include <CTBcompare.hxx>

List of all members.

Public Methods

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


Detailed Description

template<class T>
class CTBcompareFunc< T >

Compare function object - map to Compare() function.

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

Definition at line 26 of file CTBcompare.hxx.


Member Function Documentation

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

Calls v1.Compare(v2) and returns the result. This should be 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 53 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