You get a bonus - 1 coin for daily activity. Now you have 1 coin

3.7. Overload delete operation

Lecture



The delete operation function is of two types:

void operator delete (void *);

void operator delete (void *, size_t);

The second form includes an argument of type size_t, passed to the call to delete. It is passed to the compiler as the size of the object pointed to by p.

The overload feature of the delete operation is that global delete operations cannot be overloaded. They can be reloaded only in relation to the class.


Comments


To leave a comment
If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

C ++ (C plus plus)

Terms: C ++ (C plus plus)