Понимание c ++ std :: shared_ptrC++

Программы на C++. Форум разработчиков
Anonymous
Понимание c ++ std :: shared_ptr

Сообщение Anonymous »

У меня есть вопрос, пожалуйста, пройдите следующую простую программу C ++, < /p>

Код: Выделить всё

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]

Вернуться в «C++»