FixedPool.alloc

Allocates item of requested type from the pool.

Size of the requested item type must be less or equal to the pool block size.

  1. U* alloc(ARGS args)
    struct FixedPool(size_t blockSize, size_t numBlocks, T = void)
    U*
    alloc
    (
    U
    ARGS...
    )
    (
    ARGS args
    )
  2. T* alloc(ARGS args)

Return Value

Type: U*

pointer to the allocated item or null if the pool is already depleted.

Meta