This class provides a thread‐safe pool of bsl::shared_ptr objects.
Synopsis
Declared in <bdlcc_sharedobjectpool.h>
template<
class TYPE,
class CREATOR = ObjectPoolFunctors::DefaultCreator,
class RESETTER = ObjectPoolFunctors::Nil<TYPE>>
class SharedObjectPool;
Type Aliases
Name |
Description |
Type of the creator functor used by this pool. |
|
Type of the resetter functor used by this pool. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object pool. All objects created by this pool are destroyed (even if some of them are still in use) and memory is reclaimed. |
Return a shared pointer to an object from this pool. |
|
Create the specified |
|
Return a snapshot of the number of objects available in this pool. |
|
Return the number of objects currently managed by this pool. |
|
Create enough objects to satisfy at least |
|
|
Declare that this type uses a |
Created with MrDocs