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

Template functor which compute the opposite 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::OppositeOp< Type >

Template functor which compute the opposite of a number.

Definition at line 780 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

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

Definition at line 784 of file STK_Functors.h.

◆ result_type

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

Definition at line 783 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

template<class Type >
anonymous enum
Enumerator
NbParam_ 

Definition at line 782 of file STK_Functors.h.

782{ NbParam_ = 1 };

Member Function Documentation

◆ operator()()

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

Definition at line 786 of file STK_Functors.h.

786{ return -a;}

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