Add shortcut for allocation of a type.

This commit is contained in:
Bartosz Taudul 2017-09-15 19:54:43 +02:00
parent 47f6c8d06b
commit de0b50aef9

View File

@ -39,6 +39,12 @@ public:
return ret;
}
template<typename T>
T* Alloc()
{
return (T*)Alloc( sizeof( T ) );
}
void Unalloc( size_t size )
{
assert( size <= m_offset );