BloombergLP::bdlcc::ObjectPool_CreatorConverter

Converter that adapts creator types for ObjectPool constructors.

Synopsis

Declared in <bdlcc_objectpool.h>

template<
    class TYPE,
    class OTHERTYPE>
class ObjectPool_CreatorConverter;

Description

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.

Member Functions

NameDescription
ObjectPool_CreatorConverter [constructor]Create a converter holding a reference to the specified creator.
creator Return the creator object held by this converter.

Specializations

NameDescription
ObjectPool_CreatorConverter<ObjectPoolFunctors::DefaultCreator, bsl::function<void(void*)>> Converter that adapts a unary creator to the default binary creator type.