std::experimental::ranges:: UnsignedIntegral
From cppreference.net
<
cpp
|
experimental
|
ranges
C++
Experimental
| Technical Specification | ||||
| 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) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
Concepts library
| Core language concepts | ||||||||||||||||||
|
||||||||||||||||||
| Object concepts | ||||||||||||||||||
| Comparison concepts | ||||||||||||||||||
| Callable concepts | ||||||||||||||||||
| URNG concept | ||||||||||||||||||
|
template
<
class
T
>
concept bool UnsignedIntegral = Integral < T > && ! SignedIntegral < T > ; |
(ranges TS) | |
当且仅当
T
为整数类型且
std::
is_signed
<
T
>
::
value
为
false
时,概念
UnsignedIntegral<T>
得到满足。
注释
UnsignedIntegral<T>
可能被并非
无符号整数类型
的类型所满足,例如
bool
。
参见
|
(C++11)
|
检查类型是否为整数类型
(类模板) |
|
(C++11)
|
检查类型是否为有符号算术类型
(类模板) |