add casts

add inline
add template
This commit is contained in:
2025-09-23 18:17:48 +02:00
parent 3b35b973c9
commit bc4b9f1691
9 changed files with 142 additions and 3 deletions
+9 -1
View File
@@ -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;
}