Urho3D
|
Allocator template class. Allocates objects of a specific class. More...
#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Container/Allocator.h>
Public Member Functions | |
Allocator (i32 initialCapacity=0) | |
Construct. | |
~Allocator () | |
Destruct. | |
Allocator (const Allocator< T > &rhs)=delete | |
Prevent copy construction. | |
Allocator< T > & | operator= (const Allocator< T > &rhs)=delete |
Prevent assignment. | |
T * | Reserve () |
Reserve and default-construct an object. | |
T * | Reserve (const T &object) |
Reserve and copy-construct an object. | |
void | Free (T *object) |
Destruct and free an object. | |
Private Attributes | |
AllocatorBlock * | allocator_ |
Allocator block. | |
Allocator template class. Allocates objects of a specific class.