This utility class provides a general no‐op deleter, which is useful when creating managed pointers to stack‐allocated objects. Note that the non‐template class ManagedPtrUtil should be used in preference to this deprecated class, avoiding both template bloat and undefined behavior.

Synopsis

Declared in <bslma_managedptr.h>

template<class TARGET_TYPE>
struct ManagedPtrNilDeleter;

Description

DEPRECATED: Use ManagedPtrUtil::noOpDeleter instead.

Static Member Functions

Name

Description

deleter

Deleter function that does nothing.

Created with MrDocs