18 #ifndef LOCAL_ARRAY_GUARD
19 #define LOCAL_ARRAY_GUARD
35 template<
class T,
class ArenaSource = Arena>
46 ArenaSource::getArena().freeTopArray(
begin(),
end());
65 Arena& arena = ArenaSource::getArena();
This is an arena allocator.
pair< T *, T * > allocArray(size_t elementCount)
As allocArrayNoCon except that constructors for the elements of the array are called.
Emulates stack allocation of an array using an Arena.
const pair< T *, T * > _range
LocalArray(const size_t sizeParam)
T & operator[](const size_t i) const
static const pair< T *, T * > gccWorkAround(const size_t size)