1

Digging deep into C++ Standard Library , I have found the following shared_ptr constructor overload, see the image attached.

enter image description here

Can anyone explain how sp can share ownership with another sp and refer to ptr?? I cant understand the concept, help please.

Eduard Rostomyan
  • 6,736
  • 1
  • 29
  • 67

0 Answers0