#include #include #include #include #include "Tracer.h" #include "TracerWithHistory.h" using namespace std; void PrintOut(const Tracer &p) { cout << " printout: " << p << endl; } int main(int argc, char **argv) { Tracer a, b, c; cout << "\npopulating list:" << endl; list lst; lst.push_back(c); lst.push_back(a); lst.push_back(b); cout << "done list!" << endl; cout << "\nsort:" << endl; lst.sort(); cout << "done sort!" << endl; cout << "\nprinting:" << endl; for_each(lst.begin(), lst.end(), &PrintOut); cout << "done printing" << endl; cout << endl; return EXIT_SUCCESS; }