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

Maximum value function object. More...

#include <base/Functor.h>

Inherits UnaryOperation< TYPE, TYPE >.

Public Member Functions

 Maximum (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 Maximum< TYPE >

Maximum value function object.

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