fork download
  1. #include<iostream>
  2. #include<deque>
  3.  
  4. using std::string;
  5. using std::deque;
  6.  
  7. class Dummy {
  8. public:
  9. virtual ~Dummy(){}
  10. Dummy():ID_("00") {}
  11. Dummy& operator=(const Dummy&) { /* do nothing */ }
  12. private:
  13.  
  14. const string ID_;
  15. };
  16.  
  17. int main(){
  18. {
  19. deque <Dummy> waiter;
  20. waiter.push_back(Dummy());
  21. waiter.erase( waiter.begin() );
  22. }
  23. return 0;
  24. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Standard output is empty