TL;DR
#include <iostream>
#include <memory>
using namespace std;
int main() {
shared_ptr<int> shared_i = make_shared<int>(100);
int* normal_i = shared_i.get();
cout << *shared_i << " " << *normal_i << endl;
}
#include <iostream>
#include <memory>
using namespace std;
int main() {
shared_ptr<int> shared_i = make_shared<int>(100);
int* normal_i = shared_i.get();
cout << *shared_i << " " << *normal_i << endl;
}