Код: Выделить всё
int main( )
{
shared_ptr sptr1( new int );
shared_ptr sptr2 = sptr1;
shared_ptr sptr3;
shared_ptr sptr4;
sptr3 = sptr2;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/52926249/understanding-c-stdshared-ptr[/url]Код: Выделить всё
int main( )
{
shared_ptr sptr1( new int );
shared_ptr sptr2 = sptr1;
shared_ptr sptr3;
shared_ptr sptr4;
sptr3 = sptr2;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/52926249/understanding-c-stdshared-ptr[/url]