Header Reference: <array>
Header Reference: <array>
Fixed-size contiguous sequence container facilities from <array>.
Header Reference: <array>
Fixed-size contiguous sequence container facilities from <array>.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
Header reference pages are meant to answer a practical question quickly: what this header provides, when to reach for it, and which usage rules are easiest to get wrong.
<array>std::array<T, N>getUse <array> when size is known at compile time and you want a standard container with value semantics and contiguous storage.
#include <array>
int main() {
// Start with the primary facility from <array>.
// Then verify lifetime, invalidation, ordering, or error-handling rules.
return 0;
}