std::experi...::fixed_size(3)

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

πŸ’– NAME πŸ’–

okay bestie, welcome to the C++ Standard Libary page for std::experi...::fixed_size(3) β€” and yes, the actual name is std::experimental::simd_abi::fixed_size. It’s giving very specific ABI-tag main character energy. πŸ’…

std::experimental::simd_abi::fixed_size β€” std::experimental::simd_abi::fixed_size


✨ Synopsis ✨

Defined in header <experimental/simd>

template< int N >                      (parallelism TS v2)
struct fixed_size {};

The simd_abi::fixed_size<N> tag type ensures data-parallel types to store and manipulate N elements (i.e. simd<T, simd_abi::fixed_size<N>>::size() returns N). An implementation shall support at least all N ∈ [1, 32]. Additionally, for every supported simd<T, Abi>, where Abi is an implementation-defined ABI tag, N = simd<T, Abi>::size() shall be supported. 🌈


πŸ¦‹ Notes πŸ¦‹

An implementation may choose to forego ABI compatibility between differently compiled translation units for simd and simd_mask instantiations using the same simd_abi::fixed_size<N> tag. Otherwise, the efficiency of simd<T, Abi> is likely to be better than simd<T, fixed_size<simd_size_v<T, Abi>>> (with Abi not an instance of simd_abi::fixed_size). πŸ‘‘

Like… noted, bestie. ABI vibes check out. 🫢


πŸŽ€ Example πŸŽ€

This section is incomplete 😭

Reason: no example


🌸 See also 🌸

  • max_fixed_size β€” the maximum number of elements guaranteed to be supported by fixed; (parallelism TS v2) (constant)
  • scalar β€” tag type for storing a single element; (parallelism TS v2) (typedef)
  • compatible β€” tag type that ensures ABI compatibility; (parallelism TS v2) (alias template)
  • native β€” tag type that is most efficient; (parallelism TS v2) (alias template)
  • deduce, deduce_t β€” obtains an ABI type for given element type and number of elements; (parallelism TS v2) (class template)

🌈 Category 🌈

  • Todo no example

πŸ’– sourced from http://cppreference.com, version 2024.06.10 β€” bye bestie, you ate! πŸ’–

πŸ“¦ where this page comes from