fork(2) download
  1. #include <memory>
  2. #include <vector>
  3.  
  4. class FooImpl {};
  5.  
  6. class Foo
  7. {
  8. std::unique_ptr<FooImpl> myImpl;
  9. public:
  10. Foo( Foo&& f ) : myImpl( std::move( f.myImpl ) ) {}
  11. Foo(){}
  12. ~Foo(){}
  13. };
  14.  
  15. int main() {
  16. std::vector<Foo> testVec;
  17. testVec.resize(10);
  18. return 0;
  19. }
Success #stdin #stdout 0s 3268KB
stdin
Standard input is empty
stdout
Standard output is empty