c++ construct vector with values code example Example: how to initialize a vector in c++ std::vector<type> name;