numeric_limits::infinity

static T infinity() throw();

The function returns the representation of positive infinity for the type. The return value is meaningful only if has_infinity is true.

See the related numeric_limits sample program.