MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / checked_delete

Function checked_delete

extern/boost/boost/core/checked_delete.hpp:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29// verify that types are complete for increased safety
30
31template<class T> inline void checked_delete(T * x) BOOST_NOEXCEPT
32{
33 // intentionally complex - simplification causes regressions
34 typedef char type_must_be_complete[ sizeof(T)? 1: -1 ];
35 (void) sizeof(type_must_be_complete);
36 delete x;
37}
38
39template<class T> inline void checked_array_delete(T * x) BOOST_NOEXCEPT
40{

Callers 4

operator()Method · 0.85
~scoped_ptrMethod · 0.85
shared_countFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected