std::experimental::where(3)
okay bestie, welcome to std::experimental::where(3) β a page from the C++ Standard Libary (yep, that's the manual name exactly as printed, no cap π
). This one is all about building those where_expression / const_where_expression cuties, so let's get into it. π«Ά
β¨ NAME β¨
std::experimental::where β literally std::experimental::where. That's the whole name section, and it ate. π
πΈ Synopsis πΈ
Defined in header <experimental/simd>
template< class T, class Abi >
where_expression<simd_mask<T, Abi>, simd<T, Abi>> (1)
(parallelism TS v2)
where( const typename simd<T, Abi>::mask_type& mask,
simd<T, Abi>& value ) noexcept;
template< class T, class Abi >
const_where_expression<simd_mask<T, Abi>, const simd<T,
Abi>> (2)
(parallelism TS v2)
where( const typename simd<T, Abi>::mask_type& mask,
const simd<T, Abi>& value ) noexcept;
template< class T, class Abi >
where_expression<simd_mask<T, Abi>, simd_mask<T, Abi>> (3)
(parallelism TS v2)
where( const type_identity_t<simd_mask<T, Abi>>& mask,
simd_mask<T, Abi>& value ) noexcept;
template< class T, class Abi >
const_where_expression<simd_mask<T, Abi>, const simd_mask<T,
Abi>> (4)
(parallelism TS v2)
where( const type_identity_t<simd_mask<T, Abi>>& mask,
const simd_mask<T, Abi>& value ) noexcept;
template< class T >
where_expression<bool, T> (5)
(parallelism TS v2)
where( /*see below*/ mask, T& value ) noexcept;
template< class T >
const_where_expression<bool, const T> (6)
(parallelism TS v2)
where( /*see below*/ mask, const T& value ) noexcept;
Constructs a new const_where_expression or where_expression.
1-6) Constructs a where_expression from given mask and value parameters. Periodt. β¨
π Parameters π
1-4)
maskβ thesimd_maskobjectvalueβ reference to thesimdobject thatmaskapplies on
5,6)
maskβ the mask of typeboolvalueβ reference to the scalar thatmaskapplies on
π« Return value π«
The constructed const_where_expression or where_expression. slay. β¨
π§ Notes π§
5,6) Uses implementation defined type of mask, so that implicit conversions from other types to bool is disabled. That's the implementation-defined caveat, bestie β no cap. π
π¦ Example π¦
This section is incomplete
Reason: no example
π Category π
Category:
Todo no example
okay that's the whole page, bestie. Signing off with the footer tea: source/version is http://cppreference.com, dated 2024.06.10. Byeee πβ¨π
π¦ 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