icinga2/base/memory.h

24 lines
335 B
C++

#ifndef I2_MEMORY_H
#define I2_MEMORY_H
namespace icinga
{
using std::exception;
class OutOfMemoryException : public exception { };
class Memory
{
private:
Memory(void) { }
public:
static void *Allocate(size_t size);
static void *Reallocate(void *ptr, size_t size);
static void Free(void *ptr);
};
}
#endif /* I2_MEMORY_H */