The STL vector class is a template class.
It has a size() method (how much used storage) and capacity() (how much available storage). The push_back method checks and doubles the size if size is equal to capacity. So vectors grow automatically.
We will follow a systematic study of vector next time (chapter 5).