std::experimental::simd_mask (3) - Linux Manuals

std::experimental::simd_mask: std::experimental::simd_mask

NAME

std::experimental::simd_mask - std::experimental::simd_mask

Synopsis


Defined in header <experimental/simd>
template< class T, class Abi = simd_abi::compatible<T> >
class simd_mask;


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>

Member types


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

Member functions


              constructs a simd_mask object
constructor (public member function)
              loads from address
copy_from (public member function)
              stores to address
copy_to (public member function)
              accesses specified element
operator[] (public member function)
              negates each element
operator! (public member function)


size returns the number of elements
              (public static member function)
[static]

Non-member functions


            element-wise logic operators
operator&&_ (function)
operator||


operator&_ element-wise bitwise operators
operator|_ (function)
operator^


operator&=_ element-wise compound operators
operator|=_ (function)
operator^=
            element-wise relation operators
operator==_ (function)
operator!=

Example