FixedPool.alloc

Allocates item from the pool.

  1. U* alloc(ARGS args)
  2. T* alloc(ARGS args)
    struct FixedPool(size_t blockSize, size_t numBlocks, T = void)
    nothrow @nogc
    static if(!(is(T == void)))
    T*
    alloc
    (
    ARGS...
    )
    (
    ARGS args
    )

Return Value

Type: T*

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

Meta