Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::list is a type of container like std::vector. Use std::vector by default [1].
std::list is suitable for constant-time random-access insertion and deletion at the cost of linear-time read and write.
#include <iterator> |
Screen output:
0 |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.