fork(1) download
  1. #include <memory>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main() {
  6. int *p{new int(10)};
  7. unique_ptr<int*> p2{&p};
  8. cout<<*p2<<endl;
  9. cout<<**p2<<endl;
  10. delete p;
  11. p2.release();
  12. return 0;
  13. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
0x9eada10
10