Same as the preceding overload, using the specified objectResetter.
Synopsis
Declared in <bdlcc_sharedobjectpool.h>
SharedObjectPool(
CREATOR const& objectCreator,
RESETTER const& objectResetter,
int growBy = ‐1,
bslma::Allocator* basicAllocator = 0);
Parameters
Name |
Description |
objectCreator |
creator used to construct pooled objects |
objectResetter |
resetter invoked when objects return to the pool |
growBy |
replenishment increment or geometric seed (must not be 0) |
basicAllocator |
allocator used to supply memory |
Created with MrDocs