This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Functions
MinMaxFix.hpp File Reference
#include <Arduino.h>
#include <Settings/NamespaceSettings.hpp>
Include dependency graph for MinMaxFix.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class T , class U >
constexpr auto min (const T &a, const U &b) -> decltype(b< a ? b :a)
 
template<class T , class U >
constexpr auto max (const T &a, const U &b) -> decltype(b< a ? b :a)
 

Function Documentation

◆ min()

template<class T , class U >
constexpr auto min ( const T &  a,
const U &  b 
) -> decltype(b < a ? b : a)
constexpr

Definition at line 11 of file MinMaxFix.hpp.

◆ max()

template<class T , class U >
constexpr auto max ( const T &  a,
const U &  b 
) -> decltype(b < a ? b : a)
constexpr

Definition at line 19 of file MinMaxFix.hpp.