DGtal 1.3.0
Loading...
Searching...
No Matches
Public Member Functions
DGtal::functors::UnaryMinus< T > Struct Template Reference

#include <DGtal/base/BasicFunctors.h>

Public Member Functions

operator() (const T &x) const
 

Detailed Description

template<class T>
struct DGtal::functors::UnaryMinus< T >

Unary minus functor.

Definition at line 109 of file BasicFunctors.h.

Member Function Documentation

◆ operator()()

template<class T >
T DGtal::functors::UnaryMinus< T >::operator() ( const T &  x) const
inline
Parameters
xany value.
Returns
the opposite of x, i.e. -x.

Definition at line 116 of file BasicFunctors.h.

117 {
118 return -x;
119 }

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