MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / safeDelete

Function safeDelete

include/thundersvm/util/log.h:911–918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909/// @brief Deletes memory safely and points to null
910 template <typename T>
911 static
912 typename std::enable_if<std::is_pointer<T*>::value, void>::type
913 safeDelete(T*& pointer) {
914 if (pointer == nullptr)
915 return;
916 delete pointer;
917 pointer = nullptr;
918 }
919/// @brief Bitwise operations for C++11 strong enum class. This casts e into Flag_T and returns value after bitwise operation
920/// Use these function as <pre>flag = bitwise::Or<MyEnum>(MyEnum::val1, flag);</pre>
921 namespace bitwise {

Callers 10

LoggerMethod · 0.85
log.cppFile · 0.85
configureMethod · 0.85
newFileStreamMethod · 0.85
~StorageMethod · 0.85
unregisterAllMethod · 0.85
unregisterMethod · 0.85
unregisterAllMethod · 0.85
unregisterMethod · 0.85
~LoggerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected