37 std::ostringstream oss;
38 oss <<
"allocate(" << n <<
") called but only " << remaining <<
" out of " << capacity
40 return std::runtime_error(oss.str());
std::lock_guard< T > lock_guard
FastAllocator & operator=(FastAllocator &&rhs)
T * allocate(size_t const n)
FastAllocator & operator=(FastAllocator const &)=delete
std::runtime_error outOfMemoryError(size_t n, size_t remaining, size_t capacity)
FastAllocator(T *buffer, size_t capacity)