std::experi...::simd_size(3)
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 forstd::simd_sizeorstd::simd_size_v(since C++17), the behavior is undefined. so likeβ¦ don't do that, bestie π
π Member constants π
valueβ the width ofsimd<T, Abi>;[static](public static member constant)
π¦ Member functions π¦
operator std::size_tβ converts the object tostd::size_t, returnsvalue; public member functionoperator()β returnsvalue;(C++14)public member function
πΈ Member types πΈ
value_typeβstd::size_ttypeβ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 ofstd::experimental::simd<T,Abi>)sizeβ returns the width / number of elements;[static](parallelism TS v2) (public static member function ofstd::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
- 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