Tag: std::vector

std::array vs. std::vector

Written by on August 9, 2022 in C++, Programming with 0 Comments
std::array vs. std::vector

One of the common questions when starting to study the container abstractions in C++20 is “Should I use std::array¬†or std::vector?”. The correct answer is “use what is best suited for the current situation”. That is not good enough, obviously. In this short article, I will try to answer this question based on the intrinsic nature […]

Continue Reading