Intel xvec
Experimental C++ simd class library
Loading...
Searching...
No Matches
C++26: Mask overview

Mask types, element counts, special members, and range access. More...

Classes

class  xvec::simd::basic_mask< _Bytes, _Abi >
 A mask containing boolean elements. More...

Typedefs

template<class _Tp, simd_size_type _Np = basic_mask<sizeof(_Tp)>::size()>
using xvec::simd::mask = basic_mask<sizeof(_Tp), simd_fixed_size_abi<_Np>>
using xvec::simd::basic_mask< _Bytes, _Abi >::abi_type = _Abi
 The ABI type of this mask.
using xvec::simd::basic_mask< _Bytes, _Abi >::value_type = bool
 The boolean type of each mask element.
using xvec::simd::basic_mask< _Bytes, _Abi >::iterator = simd_iterator<basic_mask>
 Iterator over mask elements.
using xvec::simd::basic_mask< _Bytes, _Abi >::const_iterator = simd_iterator<const basic_mask>
 Iterator providing read-only access to mask elements.

Functions

constexpr xvec::simd::basic_mask< _Bytes, _Abi >::basic_mask ()=default
 Default-construct a mask.
constexpr xvec::simd::basic_mask< _Bytes, _Abi >::basic_mask (const basic_mask &)=default
 Copy-construct a mask.
constexpr xvec::simd::basic_mask< _Bytes, _Abi >::basic_mask (basic_mask &&) noexcept=default
 Move-construct a mask.
constexpr basic_mask & xvec::simd::basic_mask< _Bytes, _Abi >::operator= (const basic_mask &)=default
 Copy-assign a mask.
constexpr basic_mask & xvec::simd::basic_mask< _Bytes, _Abi >::operator= (basic_mask &&) noexcept=default
 Move-assign a mask.
constexpr iterator xvec::simd::basic_mask< _Bytes, _Abi >::begin () noexcept
 Return an iterator to the first element.
constexpr const_iterator xvec::simd::basic_mask< _Bytes, _Abi >::begin () const noexcept
 Return a const iterator to the first element.
constexpr const_iterator xvec::simd::basic_mask< _Bytes, _Abi >::cbegin () const noexcept
 Return a const iterator to the first element.
constexpr std::default_sentinel_t xvec::simd::basic_mask< _Bytes, _Abi >::end () const noexcept
 Return the end sentinel.
constexpr std::default_sentinel_t xvec::simd::basic_mask< _Bytes, _Abi >::cend () const noexcept
 Return the end sentinel.

Variables

static constexpr auto xvec::simd::basic_mask< _Bytes, _Abi >::size = size_constant<_Abi::num_elements>{}
 Return the number of elements contained in the mask.

Detailed Description

Mask types, element counts, special members, and range access.

See also
https://eel.is/c++draft/simd.mask.overview

Typedef Documentation

◆ mask

template<class _Tp, simd_size_type _Np = basic_mask<sizeof(_Tp)>::size()>
using xvec::simd::mask = basic_mask<sizeof(_Tp), simd_fixed_size_abi<_Np>>

Shortened alias for a mask type.