STK++ 0.9.13
STK::AbsOp< Type > Struct Template Reference

Template functor which compute the absolute value of a number. More...

#include <STK_Functors.h>

Public Types

enum  { NbParam_ = 1 }
 
typedef Type result_type
 
typedef hidden::RemoveConst< Type >::Type param1_type
 

Public Member Functions

result_type operator() (param1_type const &a) const
 

Detailed Description

template<class Type>
struct STK::AbsOp< Type >

Template functor which compute the absolute value of a number.

Definition at line 829 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

template<class Type >
typedef hidden::RemoveConst<Type>::Type STK::AbsOp< Type >::param1_type

Definition at line 833 of file STK_Functors.h.

◆ result_type

template<class Type >
typedef Type STK::AbsOp< Type >::result_type

Definition at line 832 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

template<class Type >
anonymous enum
Enumerator
NbParam_ 

Definition at line 831 of file STK_Functors.h.

831{ NbParam_ = 1 };

Member Function Documentation

◆ operator()()

template<class Type >
result_type STK::AbsOp< Type >::operator() ( param1_type const a) const
inline

Definition at line 835 of file STK_Functors.h.

835{ return std::abs(a);}

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