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) (parallelism 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) (parallelism TS v2)
template < class T >

const_where_expression < bool , const T >

where ( /*아래 참조*/ mask, const T & value ) noexcept ;
(6) (parallelism TS v2)

새로운 const_where_expression 또는 where_expression 을 생성합니다.

1-6) 주어진 마스크 및 값 매개변수로부터 where_expression 을 생성합니다.

목차

매개변수

1-4)
mask - simd_mask 객체
value - mask가 적용되는 simd 객체에 대한 참조
5,6)
mask - bool 타입의 마스크
value - 마스크가 적용되는 스칼라에 대한 참조

반환값

생성된 const_where_expression 또는 where_expression .

참고 사항

5,6) 구현 정의된 마스크 타입을 사용하여, 다른 타입들로부터 bool 으로의 암시적 변환이 비활성화됩니다.

예제