IAggregatePool.fill

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

  1. typeof(this) fill(size_t num, ItemType new_item)
    class IAggregatePool(T)
    typeof(this)
    fill
    (
    size_t num
    ,)
  2. typeof(this) fill(size_t num)

Parameters

num size_t

minimum number of items desired in pool

new_item ItemType

expression that creates a new instance of T

Return Value

Type: typeof(this)

this

Throws

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

Meta