CMS 3D CMS Logo

Static Public Member Functions

npstat::ComplexComparesAbs< T > Struct Template Reference

#include <ComplexComparesAbs.h>

List of all members.

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 
) [inline, static]

Definition at line 26 of file ComplexComparesAbs.h.

References alignCSCRings::r.

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

Definition at line 29 of file ComplexComparesAbs.h.

References alignCSCRings::r.

            {return l > r;}