std::experimental::simd_mask<T,Abi>::operator[]
Min standard notice:
The subscript operators allow reading and writing single elements of a simd_mask.
# Declarations
reference operator[]( size_t i );
(parallelism TS v2)
bool operator[]( size_t i ) const;
(parallelism TS v2)
# Parameters
i: the element index. Required to be less than size()
# Example
#include <cstddef>
#include <experimental/simd>
#include <iostream>
namespace stdx = std::experimental;
int main()
{
stdx::native_simd_mask<int> a{true};
a[1] = 0;
for (std::size_t i = 0; i != a.size(); ++i)
std::cout << a[i] << ' ';
std::cout << '\n';
}