#include <max.h>
the max traits defines for each type in the static const member value, what the maximum value is.
value