fork(9) download
  1. #include <memory>
  2. using namespace std;
  3.  
  4. class widget { };
  5.  
  6. int main() {
  7.  
  8. unique_ptr<widget> uptr{new widget};
  9.  
  10. shared_ptr<widget> sptr(std::move(uptr));
  11. }
  12.  
Success #stdin #stdout 0s 3424KB
stdin
Standard input is empty
stdout
Standard output is empty