35 #include <tpie/config.h>
49 template<
class T,
class STLCMP>
60 inline int compare(
const T& left,
const T& right){
61 if( (*m_isLess)(left, right) ){
return -1; }
74 template<
class T,
class TPCMP>
81 inline bool operator()(
const T& left,
const T& right)
const{
82 return (m_cmpobj->compare(left, right) < 0);
105 inline int compare(
const T& left,
const T& right){
106 if( left < right ){
return -1; }
113 #endif // _COMPARATOR_H
Convert a TPIE comparison object with a compare() function to STL comparison object with operator()...
Convert a class with a comparison operator < to a TPIE comparison object with a compare() function...
int compare(const T &left, const T &right)
Do not use with applications that test if compare returns +1 Because it never does so...
This file contains a few deprecated definitions for legacy code.
Convert STL comparison object with operator() to a TPIE comparison object with a compare() function...
int compare(const T &left, const T &right)
Do not use with applications that test if compare returns +1 Because it never does so...