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.
Declared in <bdlcc_objectpool.h>
template<class TYPE>
class Clear;
| Name | Description |
|---|---|
operator() | Inlined call to object->clear(). |