This struct provides several functors that are suitable RESETTER parameter types for ObjectPool. It also provides a typedef that specifies the default CREATOR parameter type for ObjectPool.

Synopsis

Declared in <bdlcc_objectpool.h>

struct ObjectPoolFunctors;

Types

Name

Description

Clear

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.

Nil

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 does nothing.

RemoveAll

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 removeAll upon the provided object.

Reset

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 reset upon the provided object.

Type Aliases

Name

Description

DefaultCreator

The default CREATOR parameter type for the ObjectPool class template.

Created with MrDocs