MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / allocate

Method allocate

Source/Utility/MemoryPool.h:153–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 const_pointer address( const_reference x ) const { return &x; }
152
153 pointer allocate( size_type size, CMemoryPoolAllocator<void>::const_pointer hint = 0 ) const
154 {
155 if( size == 1 )
156 {
157 return mPool.Allocate();
158 }
159
160 DAEDALUS_ERROR( "Can't handle multiple allocations - don't use this allocator e.g. with std::vector" );
161 return NULL;
162 }
163
164 void deallocate( pointer p, size_type n ) const
165 {

Callers

nothing calls this directly

Calls 1

AllocateMethod · 0.80

Tested by

no test coverage detected