MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / tcArrayDelete

Function tcArrayDelete

extra/yassl/taocrypt/include/misc.hpp:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68 template<typename T>
69 void tcArrayDelete(T* ptr)
70 {
71 // can't do array placement destruction since not tracking size in
72 // allocation, only allow builtins to use array placement since they
73 // don't need destructors called
74 typedef char builtin[IsFundamentalType<T>::Yes ? 1 : -1];
75 (void)sizeof(builtin);
76
77 ::operator delete[](ptr, TaoCrypt::tc);
78 }
79
80 #define NEW_TC new (TaoCrypt::tc)
81

Callers 8

taocrypt_testFunction · 0.85
deallocateMethod · 0.85
AddToEndMethod · 0.85
~CertDecoderMethod · 0.85
DestroyMethod · 0.85
FreeArrayMemoryFunction · 0.85
deallocateMethod · 0.85
~PublicKeyMethod · 0.85

Calls 1

operator delete[]Function · 0.50

Tested by 1

taocrypt_testFunction · 0.68