numeric_limits::max

numeric_limits::max

static T ``max``() throw();

The function returns the maximum finite value for the type (which is INT_MAX for type int and FLT_MAX for type float). The return value is meaningful if is_bounded is true.

See the related numeric_limits sample program.