Skip to content
UPEEC

new and delete

Allocate and construct / destroy and deallocate objects.

Easy
Comments 0

new T pairs with delete, new T[n] with delete[] — mismatching is UB.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.