18
Oct
2021
Smart Pointers (6/6): Final: Custom Deleters, Passing Smart Pointers…
In the final part, we will take a look at custom deleters and pass the smart pointers to functions, Custom Deleters: Smart... Read More
17
Oct
2021
Smart Pointers (5/6): std::weak_ptr
Before talking about the std::weak_ptr, it would be nice to talk about weak and strong type pointers. As an example of a... Read More
16
Oct
2021
Smart Pointers (4/6): How to Create Our Own Shared Pointer
We’ll write our basic smart shared pointer class to understand very well the std::shared_pointer class. We base our functions on the... Read More
14
Oct
2021
Smart Pointers (3/6): std::shared_ptr
Automatic memory management alias garbage collector provides release of memory which was allocated by the program, but, then, is no longer referenced.... Read More
14
Oct
2021
Smart Pointers (2/6): How to Create Our Own Unique Pointer
We’ll write our smart unique pointer class to understand the std::unique_ptr class very well. We have no other intended purpose. Let’s enjoy... Read More
14
Oct
2021
Smart Pointers (1/6): std::unique_ptr
If you don’t want to change your raw pointer habits and want to get coverage of smart pointers; then the standard libraries’... Read More
14
Oct
2021
Smart Pointers (0/6)
Before talking about smart pointers, I would like to talk briefly about non-smart pointers also known as raw pointers. If we create... Read More