std::experimental:: minmax
| 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 |
| Parallel exceptions | ||||
| Additional execution policies | ||||
| Algorithms | ||||
| Task blocks | ||||
| Data-parallel vectors | ||||
|
定义于头文件
<experimental/simd>
|
||
|
template
<
class
T,
class
Abi
>
std::
pair
<
simd
<
T, Abi
>
, simd
<
T, Abi
>>
|
(并行 TS v2) | |
返回逐元素最小值结果和逐元素最大值结果。
目录 |
参数
| a | - |
用于
minmax
运算的第一个元素向量
|
| b | - |
用于
minmax
运算的第二个元素向量
|
返回值
一个对象
r
,其中
i
th
元素的
r.
first
为
std::
min
(
a
[
i
]
, b
[
i
]
)
,而
i
th
元素的
r.
second
为
std::
max
(
a
[
i
]
, b
[
i
]
)
。
示例
|
本节内容不完整
原因:缺少示例 |