C++ primer 5th edition: placement new

Viewed 116

Hello I have this text from C++ primer 5th edition:

Explicit Destructor Invocation:

Just as placement new is analogous to using allocate, an explicit call to a destructor is analogous to calling destroy. 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 using allocate" Did he mean analogous to construct not allocate?
0 Answers
Related