• We’ve looked at both raw arrays like int a[10] and standard library
containers like vector b;
• Vectors and other containers are far more flexible, but what sort of
performance hit do we take for using them?
• Short answer: it depends on how they are used
• vectors and many other containers provide easy and natural ways to resize
• So, not really an answer
• Bottom line, use vector or deque until performance becomes an issue
and you can prove it is the container (by using something like a
profiler)
• If you feel you must use a “raw” array, use the std::array instead