#include #include using namespace std; void main() { list list_of_ints; for (int i=0; i < list_of_ints.max_size() / 1000000; i++) // insert 1 element for every million possible { list_of_ints.push_back(i); } // insert at end of list list another_list_of_ints(list_of_ints); // copy construct a new list if (list_of_ints == another_list_of_ints) { cout << "The contents of the two lists are identical and they each hold " << list_of_ints.size() << " elements" << endl; } list_of_ints.clear(); // remove all elements from list if (list_of_ints.empty()) { cout << "One of the lists has now been emptied" << endl; } }