std::array
A fixed-size array with value semantics and STL interface — no heap.
Beginner
std::array<int, 4> pins{2, 3, 4, 5}; — great for embedded code.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.