C++ Language/Type/MaxValue/Intmax
In C, macros like LONG_MIN
and LONG_MAX
had been defined to be the smallest and largest values that could be represented in that particular type.
C++'s modernization of INT_MAX
is std::numeric_limits<int>::max()
.