With the introduction of "smart pointers" in C++11 (namely unique_ptr<T> and shared_ptr<T>), why use a raw pointer (T*)? Have raw pointers become obsolete?
unique_ptr<T>
shared_ptr<T>
T*
Aucun commentaire:
Enregistrer un commentaire