Destructor.
| 19 | |
| 20 | // Destructor. |
| 21 | ~MemoryBlock() |
| 22 | { |
| 23 | std::cout << "In ~MemoryBlock(). length = " |
| 24 | << _length << "."; |
| 25 | |
| 26 | if (_data != nullptr) |
| 27 | { |
| 28 | std::cout << " Deleting resource."; |
| 29 | // Delete the resource. |
| 30 | delete[] _data; |
| 31 | } |
| 32 | |
| 33 | std::cout << std::endl; |
| 34 | } |
| 35 | |
| 36 | // Copy constructor. |
| 37 | MemoryBlock(const MemoryBlock& other) |
nothing calls this directly
no outgoing calls
no test coverage detected