IFreeList.fill

Ensures that the free list contains at least the specified number of (idle) items. Useful to pre-allocate a free list of a certain size.

interface IFreeList(T)
typeof(this)
fill
(
size_t num
,
lazy T new_item
)

Parameters

num size_t

minimum number of idle items desired in free list

new_item T

expression that creates a new instance of T

Return Value

Type: typeof(this)

this

Meta