DEPRECATED: Use a creator of the parameterized CREATOR type.

Synopsis

Declared in <bdlcc_objectpool.h>

template<class ANYPROTO>
explicit
ObjectPool(
    bsl::function<ANYPROTO> const& objectCreator,
    int growBy,
    bslma::Allocator* basicAllocator = 0);

Parameters

Name

Description

objectCreator

functor used to construct pooled objects

growBy

replenishment increment (or geometric start if negative)

basicAllocator

allocator used to supply memory

Created with MrDocs