C++ container vector is used for automatic management of memory.