IPool.fill_

Ensures that the pool contains at least the specified number of items. Useful to pre-allocate a pool of a certain size.

class IPool
protected
typeof(this)
fill_
(
size_t num
,)

Parameters

num size_t

minimum number of items desired in pool

new_item Item

expression that creates a new Item instance

Return Value

Type: typeof(this)

this

Throws

LimitExceededException if the requested number of items exceeds the previously specified limit.

Meta