C++ std::array
Modern alternative to C-style arrays, it's available from C++11.
It's a simple aggregate containing an array as its only member.
Some random things
- When you want to initialize an array
- โ
std::array<int, 10> array;
there will be garbage inside - โ
std::array<int, 10> array = {};
every element will be 0
- โ