std::numeric_limits<T>::digits

来自cppreference.com