// C++ program to demonstrate the use of list containers #include #include using namespace std; int main() { // defining list list gqlist{12,45,8,6}; // note the use of auto: // In C++, the auto keyword is a type specifier that allows the // compiler to automatically deduce the type of a variable from its // initializer. This means you don't have to explicitly specify the // type when declaring a variable. // for (auto i : gqlist) { cout << i << ' '; } cout << endl; return 0; }