STK++ 0.9.13
STK::MinOp< Type1, Type2 > Struct Template Reference

Template functor which compute the minimum of two numbers. More...

#include <STK_Functors.h>

Public Types

enum  { NbParam_ = 2 }
 
typedef hidden::Promote< Type1, Type2 >::result_type result_type
 
typedef hidden::RemoveConst< Type1 >::Type param1_type
 
typedef hidden::RemoveConst< Type2 >::Type constparam2_type
 

Public Member Functions

result_type operator() (param1_type const &value1, param2_type value2) const
 

Detailed Description

template<class Type1, class Type2 = Type1>
struct STK::MinOp< Type1, Type2 >

Template functor which compute the minimum of two numbers.

Definition at line 262 of file STK_Functors.h.

Member Typedef Documentation

◆ param1_type

template<class Type1 , class Type2 = Type1>
typedef hidden::RemoveConst<Type1>::Type STK::MinOp< Type1, Type2 >::param1_type

Definition at line 266 of file STK_Functors.h.

◆ param2_type

template<class Type1 , class Type2 = Type1>
typedef hidden::RemoveConst<Type2>::Type const& STK::MinOp< Type1, Type2 >::param2_type

Definition at line 267 of file STK_Functors.h.

◆ result_type

template<class Type1 , class Type2 = Type1>
typedef hidden::Promote<Type1,Type2>::result_type STK::MinOp< Type1, Type2 >::result_type

Definition at line 265 of file STK_Functors.h.

Member Enumeration Documentation

◆ anonymous enum

template<class Type1 , class Type2 = Type1>
anonymous enum
Enumerator
NbParam_ 

Definition at line 264 of file STK_Functors.h.

264{ NbParam_ = 2 };

Member Function Documentation

◆ operator()()

template<class Type1 , class Type2 = Type1>
result_type STK::MinOp< Type1, Type2 >::operator() ( param1_type const value1,
param2_type  value2 
) const
inline

Definition at line 269 of file STK_Functors.h.

270 { return (value1 < value2) ? value1: value2 ;}

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