icinga2/base/memory.h

24 lines
335 B
C
Raw Normal View History

2012-03-28 13:24:49 +02:00
#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 */