Quantcast
Channel: On C++ and other OOPscenities » shared_ptr
Browsing all 2 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

C++: 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
Browsing all 2 articles
Browse latest View live




Latest Images