8#ifndef INCLUDED_BSLMA_DESTRUCTIONUTIL
9#define INCLUDED_BSLMA_DESTRUCTIONUTIL
129#include <bslscm_version.h>
167 template <
class TYPE>
169 template <
class TYPE>
171 template <
class TYPE>
179 static void scribbleOverMemory(
void *address,
size_t numBytes);
190 template <
class TYPE>
191 static void destroy(TYPE *
object);
208#ifdef BSLS_ASSERT_SAFE_IS_ACTIVE
209 scribbleOverMemory(address,
sizeof(TYPE));
223#ifdef BSLS_PLATFORM_CMP_MSVC
224#pragma warning( push )
225#pragma warning( disable : 4100 )
232#ifndef BSLS_PLATFORM_CMP_SUN
239 const_cast<NoCvType *
>(address)->~NoCvType();
243#ifdef BSLS_PLATFORM_CMP_MSVC
244#pragma warning( pop )
250void DestructionUtil::destroy(TYPE *
object)
#define BSLS_ASSERT_SAFE(X)
Definition bsls_assert.h:1917
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
Definition baljsn_encoder_testtypes.h:76
remove_const< typenameremove_volatile< t_TYPE >::type >::type type
Definition bslmf_removecv.h:128
Definition bslma_destructionutil.h:155