Based upon this, can I infer that int age = 45; auto* page = &age; std::cout << *page; will allow true generics in c++ whereas void* requires knowledge of the type to cast it and grab the value?
I am studying c++ again and thought auto* would be a very suitable and ideal replacement for void*.
Aucun commentaire:
Enregistrer un commentaire