Rebel Fork Framework
|
Allocator template class. Allocates objects of a specific class. More...
#include <Urho3D/Container/Allocator.h>
Public Member Functions | |
Allocator (unsigned initialCapacity=0) | |
Construct. | |
~Allocator () | |
Destruct. | |
template<typename... Args> | |
T * | Reserve (Args &&... args) |
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. | |
Additional Inherited Members | |
Private Member Functions inherited from Urho3D::NonCopyable | |
NonCopyable (const NonCopyable &other)=delete | |
NonCopyable (NonCopyable &&other)=delete | |
NonCopyable & | operator= (const NonCopyable &other)=delete |
NonCopyable & | operator= (NonCopyable &&other)=delete |
Allocator template class. Allocates objects of a specific class.