carb_max#
Defined in carb/MinMax.h
-
template<class T>
constexpr const T &carb_max(
) noexcept(noexcept(left < right))# Returns the larger value.
Returns the first argument when the arguments are equivalent.
Same as
std::maxbut implemented without using themaxkeyword as Windows.h can sometimes#defineit.- Parameters:
left – The first value to compare.
right – The second value to compare.
- Returns:
rightifleftis less thanright, otherwiseleft, even if the values are equal.