// -*- C++ -*- #ifndef HL_ONEHEAP_H #define HL_ONEHEAP_H #include "utility/singleton.h" namespace HL { template class OneHeap : public singleton { public: enum { Alignment = TheHeap::Alignment }; static inline void * malloc (size_t sz) { return singleton::getInstance().malloc (sz); } static inline bool free (void * ptr) { return singleton::getInstance().free (ptr); } static inline size_t getSize (void * ptr) { return singleton::getInstance().getSize (ptr); } }; } #endif