OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavyai::allocator::detail Namespace Reference

Classes

class  FastAllocator
 

Functions

std::runtime_error outOfMemoryError (size_t n, size_t remaining, size_t capacity)
 

Function Documentation

std::runtime_error heavyai::allocator::detail::outOfMemoryError ( size_t  n,
size_t  remaining,
size_t  capacity 
)
inline

Definition at line 36 of file FastAllocator.h.

Referenced by heavyai::allocator::detail::FastAllocator< T >::allocate().

36  {
37  std::ostringstream oss;
38  oss << "allocate(" << n << ") called but only " << remaining << " out of " << capacity
39  << " available.";
40  return std::runtime_error(oss.str());
41 }
constexpr double n
Definition: Utm.h:38

+ Here is the caller graph for this function: