std::experi...:overaligned(3)
๐ std::experimental::overaligned_tag,std::experimental::overaligned ๐
okay so this is the std::experi...:overaligned(3) page from the C++ Standard Libary manual โ yes, โLibaryโ is literally how the manual name is spelled in the source, Iโm not fixing it ๐
. Itโs giving very niche C++ simd alignment lore, and honestly? iconic.
โจ NAME โจ
std::experimental::overaligned_tag,std::experimental::overalignedโ the page title/name, and the source repeats the same thing after the dash:std::experimental::overaligned_tag,std::experimental::overaligned. fr fr.
๐ Synopsis ๐
Defined in header <experimental/simd>:
template< std::size_t N >
struct overaligned_tag {};
That struct overaligned_tag {}; is marked (parallelism TS v2).
template< std::size_t N >
inline constexpr overaligned_tag<N> overaligned{};
Lowkey the whole point: this tag type indicates that the buffer of copy_from and copy_to is aligned to N. No cap, thatโs the vibe.
๐งฎ Template parameters ๐งฎ
Nโ the alignment in bytes the memory access may assume. Thatโs the number youโre promising the universe, bestie โจ.
๐ See also ๐
vector_aligned_tagโ flag indicating alignment of the load/store address to vector.vector_alignedโ alignment(parallelism TS v2)(class).element_aligned_tagโ flag indicating alignment of the load/store address to element.element_alignedโ alignment(parallelism TS v2)(class).
๐ซถ cute sign-off time: this page is from http://cppreference.com, dated 2024.06.10, and its slug/footer thing is std::experi...:overaligned(3). Go forth and align responsibly, bestie ๐โจ๐
๐ฆ 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