1 #ifndef NPSTAT_COMPAREBYINDEX_HH_
2 #define NPSTAT_COMPAREBYINDEX_HH_
26 inline bool operator()(
const T& x,
const T& y)
const
27 {
return x[i_] < y[i_];}
28 inline bool operator()(
const T* x,
const T* y)
const
29 {
return (*x)[i_] < (*y)[i_];}
46 inline bool operator()(
const T& x,
const T& y)
const
47 {
return y[i_] < x[i_];}
48 inline bool operator()(
const T* x,
const T* y)
const
49 {
return (*y)[i_] < (*x)[i_];}
Definition: CompareByIndex.hh:41
GreaterByIndex(const unsigned i)
Definition: CompareByIndex.hh:44
Definition: CompareByIndex.hh:21
LessByIndex(const unsigned i)
Definition: CompareByIndex.hh:24
Definition: AbsArrayProjector.hh:14