add casts
add inline add template
This commit is contained in:
@@ -6,4 +6,12 @@ bool changeIntegerPerPointer(int* pN);
|
||||
bool changeIntegerPerReference(int& n);
|
||||
|
||||
bool createInteger(int* pN);
|
||||
bool createIntegerWithPointerPointer(int** ppN);
|
||||
bool createIntegerWithPointerPointer(int** ppN);
|
||||
|
||||
template<typename T>
|
||||
void safeDelete(T*& pObj)
|
||||
{
|
||||
if (pObj == nullptr) return;
|
||||
delete pObj;
|
||||
pObj = nullptr;
|
||||
}
|
||||
Reference in New Issue
Block a user