40 #include <sys/types.h> 44 #if __cplusplus < 201103L 45 #define GRASS_MM_USE_EXCEPTION_SPECIFIER 48 #define MM_REGISTER_VERSION 2 51 #define MM_DEFAULT_MM_SIZE (40<<20) 136 #ifdef GRASS_MM_USE_EXCEPTION_SPECIFIER 137 void *
operator new(size_t)
throw (std::bad_alloc);
138 void *
operator new[] (size_t)
throw (std::bad_alloc);
139 void operator delete(
void *)
throw();
140 void operator delete[](
void *)
throw();
142 void *
operator new(size_t);
143 void *
operator new[] (size_t);
144 void operator delete(
void *) noexcept;
145 void operator delete[](
void *) noexcept;
159 static unsigned int count;
MM_err register_deallocation(size_t sz)
MM_err register_allocation(size_t sz)
MM_err set_memory_limit(size_t sz)
void enforce_memory_limit()
friend class mm_register_init
void ignore_memory_limit()
size_t memory_available()