Continue reading "Ditch Those Built-in Arrays for C++ Containers"
Ditch Those Built-in Arrays for C++ Containers
I previously introduced the C++ containers std::vector and std::array. You should ditch your standard built-in arrays for these container types. I expect most readers of this article to be familiar with the basics of C-style arrays. I will only be providing a brief summary of built-in array features and pitfalls. Table of Contents: Built-in Arrays …
