c++ vector initialization default constructor code example Example: how to initialize a vector in c++ std::vector<type> name;