#include <iostream>
#include <memory>
using std::cout;
using std::endl;
int main()
{
std::shared_ptr<int> p1 = std::make_shared<int>();
*p1 = 13;
cout << *p1 << endl;
cout << p1 << endl;
std::shared_ptr<int> p2(p1);
cout << *p2 << endl;
cout << p2 << endl;
return 0;
}
/*
run:
13
006B6044
13
006B6044
*/