DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions
DGtal::AbsFunctor< T > Struct Template Reference

#include <BasicFunctors.h>

Public Member Functions

operator() (const T &x) const

Detailed Description

template<class T>
struct DGtal::AbsFunctor< T >

Abs functor.

Definition at line 91 of file BasicFunctors.h.


Member Function Documentation

template<class T >
T DGtal::AbsFunctor< T >::operator() ( const T &  x) const
inline

Definition at line 94 of file BasicFunctors.h.

{
if (x < 0)
return -x;
else
return x;
}

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