how to intialize cpp vector to value code example Example: how to initialize a vector in c++ std::vector<type> name;