std::array<T, N>

A thin wrapper around a C-style array T[N].

  • Memory: Allocated on the Stack (unless part of a Heap-allocated object).
  • Performance: Zero overhead. Since the size is known at compile time, the compiler can perform aggressive optimizations like loop unrolling and SIMD vectorization.
  • Use Case: Ideal for small, fixed-dimension data like 3D coordinates or local physics tensors.