mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-21 17:38:45 -04:00
24 lines
No EOL
335 B
C++
24 lines
No EOL
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 */ |