ders::mp_newbuf< T > Class Template Reference
Helper class for exception-safe memory allocation.
More...
#include <mem_pool.hpp>
List of all members.
Detailed Description
template<class T>
class ders::mp_newbuf< T >
Helper class for exception-safe memory allocation.
Definition at line 46 of file mem_pool.hpp.
Constructor & Destructor Documentation
Definition at line 54 of file mem_pool.hpp.
00054 : mp(m), ptr(m.allocate(sizeof(T))) {}
Definition at line 55 of file mem_pool.hpp.
00055 { if (ptr) mp.deallocate(ptr, sizeof(T)); }
Member Function Documentation
Definition at line 59 of file mem_pool.hpp.
00059 { ptr=0; return p; }
The documentation for this class was generated from the following file: