The allocator of elements in pool, it's invoked directly without new
Initial pool size, this size will also be the incremental size when the pool is overloaded
Take an object out of the object pool.
An object ready for use. This function always return an object.
Destroy all elements and clear the pool.
The destructor function, it will be invoked for all elements in the pool
Put an object back into the object pool.
The object to be put back into the pool
Put multiple objects back into the object pool.
An array of objects to be put back into the pool
Generated using TypeDoc
Typed object pool. It's a traditional design, you can get elements out of the pool or recycle elements by putting back into the pool.
RecyclePool