Kylin/DataStructure/Object.h

21 lines
376 B
C
Raw Normal View History

2023-12-27 10:29:16 +08:00
#ifndef OBJECT_H
#define OBJECT_H
#include <stddef.h>
#include <stdint.h>
namespace Kylin {
class Object {
public:
void *operator new(size_t size) noexcept;
void operator delete(void *p);
void *operator new[](size_t size) noexcept;
void operator delete[](void *p);
virtual ~Object() = 0;
};
} // namespace Kylin
#endif // OBJECT_H