#include < iostream > #include < list > using namespace std; int main() { listlst; int i; for(i=0; i<10; i++) lst.push_back('A'+i); cout << "size = " << lst.size() << endl; list ::iterator p; cout << "content: "; while(!lst.empty()){ p = lst.begin(); cout << *p; lst.pop_front(); } return 0; }

