Simple constructor that initializes the resource.
| 10 | |
| 11 | // Simple constructor that initializes the resource. |
| 12 | explicit MemoryBlock(size_t length) |
| 13 | : _length(length) |
| 14 | , _data(new int[length]) |
| 15 | { |
| 16 | std::cout << "In MemoryBlock(size_t). length = " |
| 17 | << _length << "." << std::endl; |
| 18 | } |
| 19 | |
| 20 | // Destructor. |
| 21 | ~MemoryBlock() |
nothing calls this directly
no outgoing calls
no test coverage detected