Utility functions that destroy elements of parameterized type TYPE.

Synopsis

Declared in <bslma_destructionutil.h>

struct DestructionUtil;

Description

This struct provides a namespace for a suite of utility functions that destroy elements of the parameterized type TYPE. Depending on the traits of TYPE, the destructor may be invoked or not (i.e., optimized away as a no‐op).

Static Member Functions

Name

Description

destroy

Destroy the specified object without deallocating its memory.

Created with MrDocs