std::experimental::simd_mask

From cppreference.com
< cpp‎ | experimental‎ | simd
 
 
Technical specifications
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)
 
 
 
std::experimental::simd_mask
 
Defined in header <experimental/simd>
template< class T, class Abi = simd_abi::compatible<T> >
class simd_mask;
(parallelism TS v2)

The class template simd_mask is a data-parallel type with the element type bool. The width of a given simd_mask instantiation is a constant expression, determined by the template parameters. Specifically, simd_mask<T, Abi>::size() is always simd<T, Abi>::size().

Template parameters

T - the element type simd_mask applies on
Abi - the ABI type simd_mask applies on

Helper alias templates

Template Definition
template< class T, int N > using fixed_size_simd_mask simd_mask<T, simd_abi::fixed_size<N>>
template< class T > using native_simd_mask simd_mask<T, simd_abi::native<T>>

Member types

Member type Definition
value_type bool
reference implementation-defined
simd_type simd<T, Abi>
abi_type Abi

Member functions

(parallelism TS v2)
constructs a simd_mask object
(public member function)
(parallelism TS v2)
loads simd_mask elements from contiguous memory
(public member function)
(parallelism TS v2)
stores simd_mask elements to contiguous memory
(public member function)
(parallelism TS v2)
accesses specified element
(public member function)
(parallelism TS v2)
negates each element
(public member function)
[static] (parallelism TS v2)
returns the width / number of elements
(public static member function)

Non-member functions

(parallelism TS v2)
element-wise logic operators
(function)
element-wise bitwise operators
(function)
element-wise compound operators
(function)
(parallelism TS v2)
element-wise relation operators
(function)

Example

See also

(parallelism TS v2)
data-parallel vector type
(class template)