DATAKIT API  V2025.1
Dtk_greater< T > Class Template Reference

Functor comparison object. More...

Public Member Functions

int operator() (const T &t1, const T &t2) const
 Overloaded method comparison. More...
 

Detailed Description

template<typename T>
class Dtk_greater< T >

Functor comparison object.

This class allow you to sort elements in order to put the greater first

Member Function Documentation

◆ operator()()

template<typename T >
int Dtk_greater< T >::operator() ( const T &  t1,
const T &  t2 
) const

Overloaded method comparison.

Remarks
Use the same schema to make a customized functor
30 {return t1>t2;}