Template Numerical Library version main:e6bb26f
Public Member Functions | Static Public Member Functions | List of all members
TNL::Min Struct Reference

Function object implementing min(x, y). More...

#include <TNL/Functional.h>

Public Member Functions

template<typename T1 , typename T2 >
constexpr auto operator() (const T1 &lhs, const T2 &rhs) const
 

Static Public Member Functions

template<typename T >
static constexpr T getIdentity ()
 Returns the identity element of the operation. More...
 

Detailed Description

Function object implementing min(x, y).

Member Function Documentation

◆ getIdentity()

template<typename T >
static constexpr T TNL::Min::getIdentity ( )
inlinestaticconstexpr

Returns the identity element of the operation.

Suitable for TNL::Algorithms::reduce.


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