std::numeric_limits
std::numeric_limits
Defined in header <limits> | ||
---|---|---|
template< class T > class numeric_limits; |
The numeric_limits
class template provides a standardized way to query various properties of arithmetic types (e.g. the largest possible value for type int
is std::numeric_limits<int>::max()
).
This information is provided via specializations of the numeric_limits
template. The standard library makes available specializations for all arithmetic types:
Defined in header
|
---|