BloombergLP::bdlcc::ObjectPool_CreatorConverter<ObjectPoolFunctors::DefaultCreator, bsl::function<void(void*)>>

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.

Synopsis

Declared in <bdlcc_objectpool.h>

template<>
class ObjectPool_CreatorConverter<ObjectPoolFunctors::DefaultCreator, bsl::function<void(void*)>>;

Description

This version of the converter is a full template specialization for the case that the default creator type is used with a unary creator. In this case, creator will return a binder (see bdlf_bind) that adapts the unary creator to a binary creator that discards the second argument. This usage is DEPRECATED and provided only for backward compatibility.

Member Functions

Name
ObjectPool_CreatorConverter [constructor]
creator