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