Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有以下
class X { typedef some_numeric_type my_type; }
那怎么确定界限my_type呢?
my_type
std::numeric_limits从头<limits>开始。
std::numeric_limits
<limits>
#include <limits> std::numeric_limits<my_type>::min() std::numeric_limits<my_type>::max()