Quantcast
Viewing latest article 18
Browse Latest Browse All 23

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 administration in a deterministic way so you will not need (almost, again) to release the memory manually. The “almost” means that there is […]Image may be NSFW.
Clik here to view.

Viewing latest article 18
Browse Latest Browse All 23

Trending Articles