Description

Template class integer_traits is derived from
std::numeric_limits. In general, it adds the single
bool member is_integral with the
compile-time constant value false. However, for all
integral types T (std::3.9.1/7 [basic.fundamental]),
there are specializations provided with the following compile-time
constants defined:

member

type

value

is_integral

bool

true

const_min

T

equivalent
to std::numeric_limits<T>::min()

const_max

T

equivalent
to std::numeric_limits<T>::max()

Note: A flag is_integral is provided, because a
user-defined integer class should specialize
std::numeric_limits<>::is_integer = true,
nonetheless compile-time constants const_min and
const_max cannot be provided for that user-defined class.