Implementing a Struct of Arrays

C++26 Reflection doesn’t have a lot on offer when it comes to code generation, but it does have the tools for this. - article / HN

see also

  • SOA library in C++ / web search
    • EnTT - a header-only, tiny and easy Popular for ECS (Entity-Component-System) in games. - Internally uses SOA for components.
  • llvm-mos-sdk - soa::Array< T, N > - An array implemented as a struct of arrays.
Written on May 31, 2025, Last update on October 10, 2025
c++ vector array template single-header