std::vector

Declaration

 

Simple operation

 

Fill with something

 

Combine two vectors

 

In-place solution for creating object

Originally, object gets created first in the main stack and then copied to the vector’s memory address

In-place object creation can be achieved and save the computing time for copying the object