6#include <AH/Math/FixArduinoMacros.hpp>
14template <
class T,
class U>
15constexpr auto min(
const T &a,
const U &b) ->
decltype(b < a ? b : a) {
21template <
class T,
class U>
22constexpr auto max(
const T &a,
const U &b) ->
decltype(a < b ? b : a) {
#define BEGIN_AH_NAMESPACE
#define AH_DIAGNOSTIC_POP()
#define AH_DIAGNOSTIC_WERROR()
constexpr auto min(const T &a, const U &b) -> decltype(b< a ? b :a)
Return the smaller of two numbers/objects.
constexpr auto max(const T &a, const U &b) -> decltype(a< b ? b :a)
Return the larger of two numbers/objects.