CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Static Public Member Functions
npstat::ComplexComparesAbs< T > Struct Template Reference

#include <ComplexComparesAbs.h>

Static Public Member Functions

static bool less (const T &l, const T &r)
 
static bool more (const T &l, const T &r)
 

Detailed Description

template<class T>
struct npstat::ComplexComparesAbs< T >

This template compares two numbers. For simple numeric types (int, double, etc) the numbers themselves are compared while for std::complex<...> types absolute values are compared.

Definition at line 24 of file ComplexComparesAbs.h.

Member Function Documentation

template<class T >
static bool npstat::ComplexComparesAbs< T >::less ( const T l,
const T r 
)
inlinestatic

Definition at line 26 of file ComplexComparesAbs.h.

References alignCSCRings::r.

27  {return l < r;}
template<class T >
static bool npstat::ComplexComparesAbs< T >::more ( const T l,
const T r 
)
inlinestatic

Definition at line 29 of file ComplexComparesAbs.h.

References alignCSCRings::r.

30  {return l > r;}