#include #include #include int main() { auto p = std::make_shared>(1, 2); auto py = std::shared_ptr(p, &(p->second)); p = nullptr; std::cout << *py << '\n'; }