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