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

Class del_ptr_zero

extra/yassl/include/buffer.hpp:196–205  ·  view source on GitHub ↗

checked delete functor increases effeciency, no indirection on function call sets pointer to zero so safe for std conatiners

Source from the content-addressed store, hash-verified

194// checked delete functor increases effeciency, no indirection on function call
195// sets pointer to zero so safe for std conatiners
196struct del_ptr_zero
197{
198 template <typename T>
199 void operator()(T*& p) const
200 {
201 T* tmp = 0;
202 STL::swap(tmp, p);
203 checked_delete(tmp);
204 }
205};
206
207
208

Callers 8

~CertManagerMethod · 0.85
~CertificateRequestMethod · 0.85
~SessionsMethod · 0.85
lookupMethod · 0.85
removeMethod · 0.85
FlushMethod · 0.85
~SSL_CTXMethod · 0.85
~BuffersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected