Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
MinMaxFix.hpp
Go to the documentation of this file.
1#pragma once
2
4
6
8
11template <class T, class U>
12constexpr auto min(const T &a, const U &b) -> decltype(b < a ? b : a) {
13 return b < a ? b : a;
14}
15
18template <class T, class U>
19constexpr auto max(const T &a, const U &b) -> decltype(a < b ? b : a) {
20 return a < b ? b : a;
21}
22
#define END_AH_NAMESPACE
#define BEGIN_AH_NAMESPACE
A class for serial-in/parallel-out shift registers, like the 74HC595 that are connected to the SPI bu...