C++: Smart pointers, part 4: shared_ptr
As I mentioned in other posts, C++11 brings a new set of smart pointers into C++. The most useful smart pointer is shared_ptr: Its memory management policy consists in counting the number of shared_ptr...
View ArticleC++: Smart pointers, part 5: weak_ptr
Some posts ago, I wrote about shared_ptr. In modern C++ applications (C++11 and later), you can replace almost all your naked pointers to shared_ptr and unique_ptr in order to have automatic resource...
View Article
More Pages to Explore .....