MCPcopy Create free account
hub / github.com/EricPengShuai/Interview / MemoryBlock

Method MemoryBlock

STL/move.cpp:12–18  ·  view source on GitHub ↗

Simple constructor that initializes the resource.

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected