Namespaces
Variants

std::experimental:: where

From cppreference.net
定义于头文件 <experimental/simd>
template < class T, class Abi >

where_expression < simd_mask < T, Abi > , simd < T, Abi >>
where ( const typename simd < T, Abi > :: mask_type & mask,

simd < T, Abi > & value ) noexcept ;
(1) (并行 TS v2)
template < class T, class Abi >

const_where_expression < simd_mask < T, Abi > , const simd < T, Abi >>
where ( const typename simd < T, Abi > :: mask_type & mask,

const simd < T, Abi > & value ) noexcept ;
(2) (并行 TS v2)
template < class T, class Abi >

where_expression < simd_mask < T, Abi > , simd_mask < T, Abi >>
where ( const type_identity_t < simd_mask < T, Abi >> & mask,

simd_mask < T, Abi > & value ) noexcept ;
(3) (并行 TS v2)
template < class T, class Abi >

const_where_expression < simd_mask < T, Abi > , const simd_mask < T, Abi >>
where ( const type_identity_t < simd_mask < T, Abi >> & mask,

const simd_mask < T, Abi > & value ) noexcept ;
(4) (并行 TS v2)
template < class T >

where_expression < bool , T >

where ( /*见下文*/ mask, T & value ) noexcept ;
(5) (并行 TS v2)
template < class T >

const_where_expression < bool , const T >

where ( /*见下文*/ mask, const T & value ) noexcept ;
(6) (并行 TS v2)

构造一个新的 const_where_expression where_expression

1-6) 根据给定的掩码和值参数构造一个 where_expression

目录

参数

1-4)
mask - simd_mask 对象
value - 所应用掩码的 simd 对象引用
5,6)
mask - 类型为 bool 的掩码
value - 掩码所应用标量的引用

返回值

构造的 const_where_expression where_expression

注释

5,6) 使用实现定义的掩码类型,从而禁用从其他类型到 bool 的隐式转换。

示例