multi_span<...>
summary
C++20 has span but common particle-system code shows a problem: interleaved arrays waste about 50% of cache when density ignores speed. Creating separate arrays fixes layout but forces passing two lengths. The solution is multi_span: a container of multiple typed spans that share one size and enforce equal length. It supports making from separate buffers, extracting individual spans, subslice all at once, and converting to a subset-of-types; it simplifies buffer-heavy code and works in practice.
AI-written summary · about
related talks
01h 07mMultidimensional C++
57mA Short Life span - For A Regular Mess
01h 30mTaming C++23 - The Things About C++23 You Do Not Know
54mGeneric Programming Without (Writing Your Own) Templates
39mC++ Multi-dimensional Arrays...
01h 00mThe Guideline Support Library: One Year Later
57mC++ Standard Parallelism
58mC++ Standard Parallelism
