fork download
  1. #include <iostream>
  2. #include <memory>
  3.  
  4. using namespace std;
  5.  
  6. void MyFunction( const int* p )
  7. {
  8.  
  9. }
  10.  
  11. int main() {
  12.  
  13. std::auto_ptr<int> p( new int (10) );
  14.  
  15. MyFunction( p.get() );
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.02s 2808KB
stdin
Standard input is empty
stdout
Standard output is empty