fork(1) download
  1. #include <map>
  2.  
  3. struct Foo
  4. {
  5. Foo () {};
  6.  
  7. Foo (const Foo &) = delete;
  8. Foo & operator = (const Foo &) = delete;
  9.  
  10. Foo (Foo &&) {}
  11. Foo & operator = (Foo &&) {return *this;}
  12. };
  13.  
  14. int main ()
  15. {
  16. std::map<int, Foo> m;
  17.  
  18. m.insert (std::make_pair (123, Foo ()));
  19. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
Standard output is empty