void print_matrix_movies()
{
MatrixMovie mm;
for (mm=MatrixMovie::begin(); mm!=MatrixMovie::end(); ++mm)
{
std::cout << mm.text() << ", ";
}
std::cout << "\nA total of " <<
MatrixMovie::size() << " matrix movies. \n";
}
This produces the following output:
Matrix, Matrix Reloaded, Matrix Revolutions, A total of 3 matrix movies.