carb_min
Defined in carb/Defines.h
-
template<class T>
constexpr const T &carb_min(const T &left, const T &right) noexcept(noexcept(left < right)) Picks the minimum of two values.
Same as
std::min
but implemented without using themin
keyword as Windows.h can sometimes#define
it.- Parameters
left – The first value to compare.
right – The second value to compare.
- Returns
left
ifleft
is less thanright
, otherwiseright
, even if the values are equal.