CMS 3D CMS Logo

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

◆ less()

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

Definition at line 25 of file ComplexComparesAbs.h.

References MainPageGenerator::l.

◆ more()

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

Definition at line 27 of file ComplexComparesAbs.h.

References MainPageGenerator::l.