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
  • 7,050
  • 2
  • 37
  • 76

0 Answers0