|
ADS
Algorithms and Data Structures
|
\( k \) items of the internal memory, taken on construction and given back on destruction More...
#include <ADS/external/TwoLevelMemory.h>
Public member functions | |
| MemoryLease (TwoLevelMemory &mem, std::size_t k) | |
| the lease of \( k \) items of mem | |
| MemoryLease (const MemoryLease &)=delete | |
| no copy, since the items would be given back twice | |
| MemoryLease & | operator= (const MemoryLease &)=delete |
| no copy, since the items would be given back twice | |
| ~MemoryLease () | |
| gives the items back | |
| std::size_t | size (void) const |
| \( k \), the items taken | |
\( k \) items of the internal memory, taken on construction and given back on destruction
| ADS::MemoryLease::MemoryLease | ( | TwoLevelMemory & | mem, |
| std::size_t | k ) |
the lease of \( k \) items of mem
|
delete |
no copy, since the items would be given back twice
| ADS::MemoryLease::~MemoryLease | ( | ) |
gives the items back
|
delete |
no copy, since the items would be given back twice
|
nodiscard |
\( k \), the items taken