Content deleted Content added
Line 23:
void* allocate(size_t size) {
if (!
nextFree = allocatedMemory = ::operator new(size);
} else {
nextFree = static_cast<char*>(nextFree) + size;
}
return nextFree;
}
Line 37 ⟶ 38:
struct ListNode {
ListNode* next;
ListNode(
next{nullptr} {}
};
|