命名空间
变体
操作

std::experimental::ranges::UnsignedIntegral

出自 cppreference.cn
< cpp‎ | experimental‎ | ranges
 
 
实验性
技术规范
文件系统库 (filesystem TS)
库基础 (library fundamentals TS)
库基础 2 (library fundamentals TS v2)
库基础 3 (library fundamentals TS v3)
并行性扩展 (parallelism TS)
并行性扩展 2 (parallelism TS v2)
并发性扩展 (concurrency TS)
并发性扩展 2 (concurrency TS v2)
概念 (concepts TS)
范围 (ranges TS)
反射 (reflection TS)
数学特殊函数 (special functions TR)
实验性非 TS
模式匹配
线性代数
std::execution
契约
2D 图形
 
 
概念库
核心语言概念
                              
无符号整型
对象概念
                              
                              
比较概念
可调用概念
                                        
                              
URNG 概念
 
template< class T >
concept bool UnsignedIntegral = Integral<T> && !SignedIntegral<T>;
(ranges TS)

概念 UnsignedIntegral<T> 当且仅当 T 是一个整型,且 std::is_signed<T>::valuefalse 时,得到满足。

[edit] 注解

UnsignedIntegral<T> 可能被不是无符号整数类型的类型所满足,例如, bool

[edit] 参见

检查类型是否为整型
(类模板) [编辑]
(C++11)
检查类型是否为有符号算术类型
(类模板) [编辑]