for (auto it = mylist.begin(); it != mylist.end(); ++it)
cout << ' ' << *it;
for (auto it = mylist.begin(); it != mylist.end(); ++it)
std::cout << (*it)->name;
std::list<Student>::iterator<Student> it;
for (it = data.begin(); it != data.end(); ++it) {
std::cout<<(*it)->name;
}