TPIE

2362a60
tpie::STL2TPIE_cmp< T, STLCMP > Class Template Reference

Convert STL comparison object with operator() to a TPIE comparison object with a compare() function. More...

#include <tpie/comparator.h>

Public Member Functions

 STL2TPIE_cmp (STLCMP *cmp)
 
int compare (const T &left, const T &right)
 Do not use with applications that test if compare returns +1 Because it never does so. More...
 

Detailed Description

template<class T, class STLCMP>
class tpie::STL2TPIE_cmp< T, STLCMP >

Convert STL comparison object with operator() to a TPIE comparison object with a compare() function.

Definition at line 50 of file comparator.h.

Member Function Documentation

template<class T , class STLCMP >
int tpie::STL2TPIE_cmp< T, STLCMP >::compare ( const T &  left,
const T &  right 
)
inline

Do not use with applications that test if compare returns +1 Because it never does so.

Definition at line 60 of file comparator.h.

60  {
61  if( (*m_isLess)(left, right) ){ return -1; }
62  else { return 0; }
63  }

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