Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję+ 1
Types of pointers
3 odpowiedzi
+ 3
Post C++11, there are 4 types of pointers in C++:
unique_ptr, shared_ptr, weak_ptr (smart pointers or wrappers over raw pointers for maintaining resource ownership in different scopes and among different owners), and the raw pointer from C.
You can find more information about them here: https://en.cppreference.com/w/cpp/header/memory
+ 2
https://www.sololearn.com/learn/CPlusPlus/1630/