Hello I have this text from C++ primer 5th edition:
Explicit Destructor Invocation:
Just as placement
new
is analogous to usingallocate
, an explicit call to a destructor is analogous to callingdestroy
. We call a destructor the same way we call any other member function on an object or through a pointer or reference to an object:
- Is it a mistake: "Just as placement
new
is analogous to usingallocate
" Did he mean analogous toconstruct
notallocate
?