Question #515

What is a placement syntax “new” (“placement new”) and why is it needed?

Expert's answer

With this tool you can explicitly specify the operator new where in memory you want to place the object. Moreover, you will have to call its destructor by your own. This is the only case when you have to call the destructor manually.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS