deleteObjectRaw overloads

Synopses

Declared in <bslma_allocator.h>

This function has no effect. Note that it exists to support calling deleteObjectRaw will a null pointer literal, that would otherwise not deduce to a pointer type for the method above. As calls to deleteObjectRaw with (typed) null pointer values have well‐defined behavior, it should also support calls with a null pointer literal.

Destroy the specified object and then use this allocator to deallocate its memory footprint. Do nothing if object is a null pointer. The behavior is undefined unless object was allocated using this allocator, is not a secondary base class pointer ‐‐ i.e., the address is (numerically) the same as when it was originally dispensed by this allocator, and has not already been deallocated.

template<class TYPE>
void
deleteObjectRaw(TYPE const* object);

Created with MrDocs