mirror of https://github.com/Icinga/icinga2.git
24 lines
335 B
C
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 */
|