vector reserve « vector « C++ Tutorial






16.21.vector reserve
16.21.1.Reserving Space in a Vector
16.21.2.Reserve memory for five elements to avoid reallocation
16.21.3.Ensure there's room for at least 1000 elements