Daily bit(e) of C++ | std::numeric_limits
Daily bit(e) of C++ #392, Querying properties of numeric types: std::numeric_limits.
std::numeric_limits is a base template whose specializations (for integral and floating point types) expose the various properties of those numerical types (limits and behaviour).
The template can be specialized for user types.