Criado por Adriana Vincelli-Joma
aproximadamente 3 anos atrás
|
||
Two Events that Occur When Object is Created
Three Ways in Which First Event Occurs
C++ does not employ C language approach to heap
operator new
delete expression
operator delete
Overhead Used by Memory Manager
Using Delete for void*
operator[]
remove()
Responsibility for cleanup when using pointers
new with array
delete with array
Converting pointer to operate like array
new handler
operator new()
operator delete()
overloading global new and delete
overloading new and delete for class
overloading new and delete for array
Two less common uses for overloading operator new()