ways of initializing vector in cpp code example Example: how to initialize vector vector<int> vect{ 10, 20, 30 };