假设我有以下内容
class X {
typedef some_numeric_type my_type;
}
Run Code Online (Sandbox Code Playgroud)
如何确定限制my_type?
与std::numeric_limits从<limits>报头.
#include <limits>
std::numeric_limits<my_type>::min()
std::numeric_limits<my_type>::max()
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
46 次 |
| 最近记录: |