Optimizing vector in C++

Table of Contents Initialize the capacity or the size of vector when knowing about exactly the number of elements or the minimum of elements in vector. Should use assignment, or assign(), or insert() when you need to copy the vector’s elements to the other vector. Use move semantic for the... [Read More]
Tags: C++