std::experi...e_expression(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸŽ€ NAME πŸŽ€

This page is std::experi...e_expression(3) from the C++ Standard Libary manual β€” yes bestie, that's the manual name, and yes the title is literally truncated like that, iykyk πŸ’….

The name is std::experimental::const_where_expression β€” std::experimental::const_where_expression. That's the whole NAME vibe: same thing twice, slay.

πŸ¦‹ Synopsis πŸ¦‹

Defined in header <experimental/simd>
template< class M, class V >           (parallelism TS v2)
class const_where_expression;

Okay so the class template const_where_expression abstracts the notion of selected elements of a given const object of arithmetic or data-parallel type. And β€œselected elements” means the elements data[i] for all i ∈ { j ∈ β„• | j < M::size() β‹€ mask[j] } β€” literally that exact set, no cap 🫢.

🌸 Template parameters 🌸

  • M β€” the mask type. That's it, that's the job πŸŽ€.
  • V β€” the value type M applies on.

Valid combinations of (M, V) are literally:

  • (simd_mask<T, Abi>, const simd<T, Abi>)
  • (simd_mask<T, Abi>, const simd_mask<T, Abi>)
  • (bool, const T)

πŸ’… Member functions πŸ’…

These are the member functions, and I'm keeping every lil line:

  • operator- β€” unary operators
  • operator+ β€” public member function
  • operator~
  • copy_to β€” stores selected elements to address (public member function)

πŸ“ Example πŸ“

This section is incomplete Reason: no example

Yeah bestie, no example yet 😭. The manual is literally telling on itself.

🧚 Category 🧚

  • Todo no example

mwah πŸ’‹ this was std::experi...e_expression(3) from http://cppreference.com, version/date 2024.06.10. bye bestie, go slay some SIMD πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from