fork download
  1. #include <memory>
  2.  
  3. std::unique_ptr<int> create_int()
  4. {
  5. return std::unique_ptr<int>(new int(4711));
  6. }
  7.  
  8. int main()
  9. {
  10. auto my_int = create_int();
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
Standard output is empty