fork download
  1. #include <iostream>
  2.  
  3. constexpr size_t CHUNK_SIZE = 1000000;
  4.  
  5. class mychunk
  6. {
  7. public:
  8. mychunk() : p_chunk (new char[CHUNK_SIZE] ) {}
  9.  
  10. mychunk(const mychunk& rhs) = delete;
  11. mychunk& operator=(const mychunk& rhs) = delete;
  12.  
  13. ~mychunk() { delete p_chunk; }
  14.  
  15. private:
  16. char* p_chunk = nullptr;
  17. };
  18.  
  19. int main()
  20. {
  21. mychunk mc;
  22. }
  23.  
Success #stdin #stdout 0.01s 5256KB
stdin
Standard input is empty
stdout
Standard output is empty