here is a quite simple question(I think), is there a STL library method that provides the limit of a variable type (e.g integer) ?
#include std::numeric_limits::max() // min() etc