template<typename Container>void PrintContents(const Container& con) { Container::const_iterator iter = con.begin(); while (iter != con.end()) { cout << *iter << endl; ++iter; } cout << endl;}