Converter that adapts creator types for ObjectPool constructors.
Declared in <bdlcc_objectpool.h>
template<
class TYPE,
class OTHERTYPE>
class ObjectPool_CreatorConverter;
The purpose of this private class is to avoid ambiguity between different template instantiations of bsl::function accepted by the constructors of ObjectPool. It should not be used directly.
This version of the converter ignores the parameterized OTHERTYPE. It requires a reference to an object of the parameterized TYPE in its constructor.
| Name | Description |
|---|---|
ObjectPool_CreatorConverter [constructor] | Create a converter holding a reference to the specified creator. |
creator | Return the creator object held by this converter. |
| Name | Description |
|---|---|
ObjectPool_CreatorConverter<ObjectPoolFunctors::DefaultCreator, bsl::function<void(void*)>> | Converter that adapts a unary creator to the default binary creator type. |