Base Framework
Public Member Functions | Protected Attributes | List of all members
Minimum< TYPE > Class Template Reference

Minimum value function object. More...

#include <base/Functor.h>

Inherits UnaryOperation< TYPE, TYPE >.

Public Member Functions

 Minimum (const TYPE &value) noexcept
 
void operator() (const TYPE &value) noexcept
 
TYPE getResult () const noexcept
 

Protected Attributes

TYPE result = 0
 

Additional Inherited Members

- Public Types inherited from UnaryOperation< TYPE, TYPE >
typedef TYPE Argument
 
typedef TYPE Result
 

Detailed Description

template<class TYPE>
class Minimum< TYPE >

Minimum value function object.

This function object finds the minimum value of a sequence. The objects should be of an arithmetic type.