命名空间
变体
操作

std::experimental::ranges::SignedIntegral

来自 cppreference.cn
< cpp‎ | experimental‎ | ranges
 
 
实验性
技术规范
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals TS v2)
Library fundamentals 3 (library fundamentals TS v3)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Extensions for concurrency 2 (concurrency TS v2)
Concepts (concepts TS)
Ranges (ranges TS)
Reflection (reflection TS)
Mathematical special functions (special functions TR)
实验性非TS
模式匹配
线性代数
std::execution
契约
2D 图形
 
 
Concepts library
核心语言概念
                              
SignedIntegral
对象概念
                              
                              
比较概念
可调用概念
                                        
                              
URNG concept
 
template< class T >
concept bool SignedIntegral = Integral<T> && std::is_signed<T>::value;
(ranges TS)

概念 SignedIntegral<T> 当且仅当 T 是一个整型,并且 std::is_signed<T>::valuetrue 时满足。

SignedIntegral<T>std::is_signed<T>::value 之间不需要有任何subsumption关系。

[编辑] 注释

SignedIntegral<T> 可能被不是有符号整数类型的类型满足,例如,char (在 char 是有符号的系统上)。

[编辑] 参见

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