5,321
edits
Line 471: | Line 471: | ||
====std::array==== | ====std::array==== | ||
<code>#include <array></code><br> | <code>#include <array></code><br> | ||
This wrapper around C-style arrays gives us size information and allows the array to be passed around by reference while keeping the array on the stack or in a struct. | |||
Unless you need stack allocation or allocation into a struct, you are should probably use a vector. | |||
This wrapper around C-style arrays gives us size information and allows the array to be passed around by reference while keeping the array on the stack | |||
====std::vector==== | ====std::vector==== |