SLIP  1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
slip::less_abs< _Tp > Struct Template Reference

Compare two element according to their absolute value. Return true if std::abs(__x) < std::abs( __y). More...

#include <macros.hpp>

Inheritance diagram for slip::less_abs< _Tp >:
Inheritance graph

Public Member Functions

bool operator() (const _Tp &__x, const _Tp &__y) const
 

Detailed Description

template<class _Tp>
struct slip::less_abs< _Tp >

Compare two element according to their absolute value. Return true if std::abs(__x) < std::abs( __y).

Author
Benoit Tremblais <tremblais_AT_sic.univ-poitiers.fr>
Date
2009/03/01
Since
1.0.0
Version
0.0.1
Parameters
__xThe first value.
__yThe second value.
Returns
true if std::abs(__x) < std::abs( __y), flase else.
Remarks
Used to compute the max element of a range according to the absolute value.

Definition at line 147 of file macros.hpp.

Member Function Documentation

template<class _Tp >
bool slip::less_abs< _Tp >::operator() ( const _Tp &  __x,
const _Tp &  __y 
) const
inline

Definition at line 151 of file macros.hpp.


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