 |
 |
 |
 |
 |
 |
 |
| • |
Then,
we can deallocate the memory when
|
|
|
the
lifetime of a list object is over
|
|
|
| • |
When
is that?
|
|
|
| • |
Luckily,
when the client’s object of the list
|
|
|
class
lifetime is over (at the end of the
|
|
|
|
block
in which it is defined) -- the
|
|
|
|
destructor
is implicitly invoked
|
|