Quick Links: |
#include <bdlcc_objectpool.h>
Public Member Functions | |
ObjectPool_CreatorConverter (const bsl::function< void(void *)> &creator) | |
ObjectPoolFunctors::DefaultCreator | creator () const |
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 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.
See Component bdlcc_objectpool
bdlcc::ObjectPool_CreatorConverter< ObjectPoolFunctors::DefaultCreator, bsl::function< void(void *)> >::ObjectPool_CreatorConverter | ( | const bsl::function< void(void *)> & | creator | ) |
ObjectPoolFunctors::DefaultCreator bdlcc::ObjectPool_CreatorConverter< ObjectPoolFunctors::DefaultCreator, bsl::function< void(void *)> >::creator | ( | ) | const |