std::experi...::simd_mask(3)
πΈ NAME πΈ
okay bestie, welcome to std::experimental::simd_mask β aka the std::experi...::simd_mask(3) page from the C++ Standard Libary manual. itβs giving data-parallel bool realness π
β¨ Synopsis β¨
Defined in header <experimental/simd>:
template< class T, class Abi = simd_abi::compatible<T> >
(parallelism TS v2)
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(). periodt. β¨
π Template parameters π
Tβ the element typesimd_maskapplies onAbiβ the ABI typesimd_maskapplies on
π§ Helper alias templates π§
template< class T, int N > using fixed_size_simd_maskβ definition:simd_mask<T, simd_abi::fixed_size<N>>template< class T > using native_simd_maskβ definition:simd_mask<T, simd_abi::native<T>>
π Member types π
value_typeβboolreferenceβimplementation-definedsimd_typeβsimd<T, Abi>abi_typeβAbi
π¦ Member functions π¦
constructorβ constructs asimd_maskobject(parallelism TS v2)(public member function)copy_fromβ loadssimd_maskelements from contiguous memory(parallelism TS v2)(public member function)copy_toβ storessimd_maskelements to contiguous memory(parallelism TS v2)(public member function)operator[]β accesses specified element(parallelism TS v2)(public member function)operator!β negates each element(parallelism TS v2)(public member function)sizeβ returns the width / number of elements[static](parallelism TS v2)(public static member function)
π Non-member functions π
operator&&,operator||β element-wise logic operators(function)(parallelism TS v2)operator&,operator|,operator^β element-wise bitwise operators(function)(parallelism TS v2)operator&=,operator|=,operator^=β element-wise compound operators(function)(parallelism TS v2)operator==,operator!=β element-wise relation operators(function)(parallelism TS v2)
π Example π
This section is incomplete Reason: no example
no example bestie π but the reason is literally right there.
π See also π
simdβ data-parallel vector type(parallelism TS v2)(class template)mask_arrayβ proxy to a subset of avalarrayafter applying a boolean maskoperator[](class template)
β Category β
- Todo no example
Source/version/date: http://cppreference.com Β· 2024.06.10 β bye bestie, go slay those masks π
πβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms