delete NULL
-
Wenn man delete für einen NULL-Pointer aufruft, wird das ja geprüft und nichts gemacht. Gilt das auch für Arrays, also delete [] nullPointer; ?
-
-
N3337 §5.3.5/7 schrieb:
If the value of the operand of the delete-expression is not a null pointer value, the delete-expression will
call a deallocation functionAlso: Ja.