Class MemoryLease

Class Documentation

class MemoryLease

k items of the internal memory, taken on construction and given back on destruction

Public Functions

MemoryLease(TwoLevelMemory &mem, std::size_t k)
Pre:

mem.used() + k <= M

MemoryLease(const MemoryLease&) = delete
MemoryLease &operator=(const MemoryLease&) = delete
~MemoryLease()
std::size_t size(void) const