fork(1) download
  1. #include <vector>
  2. #include <memory>
  3.  
  4. struct Test
  5. {
  6. std::unique_ptr<int> ptr;
  7. };
  8.  
  9. int main()
  10. {
  11. std::vector<Test> t;
  12. t.push_back(Test());
  13. t[0].ptr.reset(new int(3));
  14. }
Success #stdin #stdout 0s 3268KB
stdin
Standard input is empty
stdout
Standard output is empty