fork download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. struct TestClass
  5. {
  6. TestClass()
  7. {
  8. std::cout << "default ctor" << std::endl;
  9. }
  10. TestClass(const TestClass &) = delete;
  11. };
  12.  
  13. int main()
  14. {
  15. std::vector<TestClass> v (5);
  16. }
Success #stdin #stdout 0s 2984KB
stdin
Standard input is empty
stdout
default ctor
default ctor
default ctor
default ctor
default ctor