Files
cppdraft_translate/cppdraft/simd/mask/conv.md
2025-10-25 03:02:53 +03:00

2.1 KiB

[simd.mask.conv]

29 Numerics library [numerics]

29.10 Data-parallel types [simd]

29.10.9 Class template basic_mask [simd.mask.class]

29.10.9.5 basic_mask conversions [simd.mask.conv]

🔗

template<class U, class A> constexpr explicit(sizeof(U) != Bytes) operator basic_vec<U, A>() const noexcept;

1

#

Constraints: simd-size-v<U, A> == simd-size-v<T, Abi>.

2

#

Returns: A data-parallel object where the ith element is initialized tostatic_cast(operator).

🔗

constexpr bitset<size()> to_bitset() const noexcept;

3

#

Returns: A bitset<size()> object where the ith element is initialized tooperator for all i in the range [0, size()).

🔗

constexpr unsigned long long to_ullong() const;

4

#

Let N be the width of unsigned long long.

5

#

Preconditions:

size() <= N is true, or

for all i in the range [N, size()), operator returns false.

6

#

Returns: The integral value corresponding to the bits in *this.

7

#

Throws: Nothing.