r/wg21
P3737R3 - std::array is a wrapper for an array! Standards
Posted by u/constexpr_array_wrapper_guy

Document: P3737R3

Author: Jan Schultke

Date: 2026-02-22

Audience: LEWG (Library Evolution)

This revision tries to nail down what everybody already assumes: std::array is literally a thin wrapper around a T[N] member (or the T[1] zero-size trick), so layout and triviality line up with a C array. It also constexpr-ifies swap and fill. Worth a skim if you care about ABI-adjacent library guarantees; the canonical redirect is https://wg21.link/p3737r3 (open-std mirror if that bounces).

▲ 47 points · 0 comments
sorted by: best