Containers
Consider this very typical piece of C/C++ code for creating an array of integers from a list of specified values (called a braced initializer):
const int[] someInts = {23, 10, 5, 17};
This is simple and works well where a plain int
array is needed, but sometimes we want to do something similar with STL containers.