fork(2) download
  1. #include <queue>
  2. #include <iostream>
  3.  
  4. class Plane
  5. {
  6. public:
  7. Plane() {}
  8. };
  9.  
  10. std::queue<Plane> landing;
  11.  
  12. using namespace std;
  13.  
  14. int main()
  15. {
  16. cout << "size before: " << landing.size() << "\n";
  17. landing.push(Plane());
  18. cout << "size after: " << landing.size() << "\n";
  19. }
Success #stdin #stdout 0s 3276KB
stdin
Standard input is empty
stdout
size before: 0
size after: 1