BloombergLP::bdlcc::ObjectPool::ObjectPool

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,
    bslma::Allocator* basicAllocator = 0);

Description

Same as the preceding overload, using the default growBy value.

Parameters

NameDescription
objectCreatorfunctor used to construct pooled objects
basicAllocatorallocator used to supply memory