std::experi...::simd_size(3)

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

okay bestie, welcome to the std::experi...::simd_size(3) page from the C++ Standard Libary manual πŸ’– this one is all about a cute little trait that tells you how wide a simd thing would be. no cap, every detail matters, so here we go 🫢

πŸ’… NAME πŸ’…

std::experimental::simd_size β€” std::experimental::simd_size

✨ Synopsis ✨

Defined in header <experimental/simd>
template< class T, class Abi = simd_abi::compatible<T> >
(parallelism TS v2)
struct simd_size;

If T is a vectorizable type and is_abi_tag_v<Abi> is true, it provides the member constant value equal to the width (number of elements) of simd<T, Abi>, irrespective of whether simd<T, Abi> is supported or not. For any other types T and Abi, there is no member value.

If the program adds specializations for std::simd_size or std::simd_size_v (since C++17), the behavior is undefined. so like… don't do that, bestie 😭

πŸŽ€ Member constants πŸŽ€

  • value β€” the width of simd<T, Abi>; [static] (public static member constant)

πŸ¦‹ Member functions πŸ¦‹

  • operator std::size_t β€” converts the object to std::size_t, returns value; public member function
  • operator() β€” returns value; (C++14) public member function

🌸 Member types 🌸

  • value_type β†’ std::size_t
  • type β†’ std::integral_constant<std::size_t, value>

πŸ“ Example πŸ“

This section is incomplete Reason: no example

🌈 See also 🌈

  • size β€” returns the width / number of elements; [static] (parallelism TS v2) (public static member function of std::experimental::simd<T,Abi>)
  • size β€” returns the width / number of elements; [static] (parallelism TS v2) (public static member function of std::experimental::simd_mask<T,Abi>)

πŸ‘‘ Category πŸ‘‘

  • Todo no example

catch you later, bestie 🫢 this page came from http://cppreference.com, dated 2024.06.10, and it's the std::experi...::simd_size(3) page β€” periodt πŸ’œ

πŸ“¦ where this page comes from