DGtal  0.9.4beta
Public Member Functions
DGtal::functors::UnaryMinus< T > Struct Template Reference

#include <DGtal/base/BasicFunctors.h>

Inheritance diagram for DGtal::functors::UnaryMinus< T >:
[legend]
Collaboration diagram for DGtal::functors::UnaryMinus< T >:
[legend]

Public Member Functions

operator() (const T &x) const
 

Detailed Description

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

Unary minus functor.

Definition at line 108 of file BasicFunctors.h.

Member Function Documentation

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 115 of file BasicFunctors.h.

116  {
117  return -x;
118  }

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