container C; . . . container::iterator p=C.begin(), q=C.end(); while (p != q) { cout << *p << "\n"; ++p; }