std::experimental::simd_mask<T,Abi>:: size
From cppreference.net
<
cpp
|
experimental
|
simd
|
simd mask
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 |
Extensions for parallelism v2
| Parallel exceptions | ||||
| Additional execution policies | ||||
| Algorithms | ||||
| Task blocks | ||||
| Data-parallel vectors | ||||
SIMD library
std::experimental::simd_mask
| Member functions | ||||||||||||
|
||||||||||||
| Non-member functions | ||||||||||||
|
static
constexpr
size_t size
(
)
noexcept
;
|
(并行技术规范 v2) | |
返回
simd_mask<T, Abi>
的宽度(数值数量)。
示例
实际输出取决于目标平台和编译器标志。
运行此代码
可能的输出:
16 16
参见
|
(parallelism TS v2)
|
获取给定元素类型和ABI标签的元素数量
(类模板) |
|
[static]
(parallelism TS v2)
|
返回宽度/元素数量
(
std::experimental::simd<T,Abi>
的公开静态成员函数)
|