#includestd::shared_ptr ptr(new int(5));
#includestd::shared_ptr ptr(new int(5)); std::cout << *ptr << std::endl;
#includeThis creates two shared_ptrs that both point to the same dynamically allocated integer with the value of 5. The `std::shared_ptr` is part of the C++ Standard Library.std::shared_ptr ptr1(new int(5)); std::shared_ptr ptr2 = ptr1;