Chemical Data Processing Library C++ API - Version 1.4.0
Static Public Member Functions | List of all members
CDPL::Math::ScalarAbsImpl< Signed > Struct Template Reference

Helper class template for retrieving the absolute value of scalar arithmetic types. More...

#include <TypeTraits.hpp>

Static Public Member Functions

template<typename T >
static T abs (const T &t)
 Returns the absolute value of t. More...
 

Detailed Description

template<bool Signed>
struct CDPL::Math::ScalarAbsImpl< Signed >

Helper class template for retrieving the absolute value of scalar arithmetic types.

Template Parameters
SignedWhether the scalar type is signed or not.

Member Function Documentation

◆ abs()

template<bool Signed>
template<typename T >
static T CDPL::Math::ScalarAbsImpl< Signed >::abs ( const T &  t)
inlinestatic

Returns the absolute value of t.

Returns
The absolute value of t.

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