std::unsigned_integral
|
在标头
<concepts> 定义 |
||
|
template < class T >
concept unsigned_integral = std::integral<T> && !std::signed_integral<T>; |
(C++20 起) | |
概念 unsigned_integral<T> 当且仅当 T 是整数类型且 std::is_signed_v<T> 为 false 时得到满足。
注解
unsigned_integral<T> 可以不为有符号整数类型,例如 bool 。
参阅
|
(C++11)
|
检查类型是否为整型 (类模板) |
|
(C++11)
|
检查类型是否为有符号算术类型 (类模板) |