BloombergLP::bdlcc::ObjectPoolFunctors::Clear

Resetter functor that calls clear on pooled objects.

Synopsis

Declared in <bdlcc_objectpool.h>

template<class TYPE>
class Clear;

Description

This fully-inlined class, suitable as the RESETTER parameter type for ObjectPool, is a functor taking a pointer to the parameterized TYPE argument, and can be invoked as: void()(TYPE). It calls clear upon the provided object.

Member Functions

NameDescription
operator() Inlined call to object->clear().