boost::random::traits::is_integral — Traits class that indicates whether type T is an integer.
// In header: <boost/random/traits.hpp> template<typename T> struct is_integral : public { };