...

/

Shared Pointers and Arrays

Shared Pointers and Arrays

C++ 17 has come up with a new method of handling arrays.

We'll cover the following...

Before C++17

Only unique_ptr was able to handle arrays out of the box (without the need to define a custom deleter).

After C++17

Now it’s also possible with shared_ptr as shown below:

 ...