npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::GreaterByIndex< T > Class Template Reference

#include <CompareByIndex.hh>

Public Member Functions

 GreaterByIndex (const unsigned i)
 
bool operator() (const T &x, const T &y) const
 
bool operator() (const T *x, const T *y) const
 

Detailed Description

template<typename T>
class npstat::GreaterByIndex< T >

Comparison functor for classes which support subscripting and for pointers to such classes. To be used with std::sort and such.

Constructor & Destructor Documentation

◆ GreaterByIndex()

template<typename T >
npstat::GreaterByIndex< T >::GreaterByIndex ( const unsigned  i)
inlineexplicit

Constructor takes the index of the element to be compared


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