technique
Item-18 Make interfaces easy to use correctly and hard to use incorrectly
· β 6 min read
Item-17 Store newed objects in smart pointers in standalone statements
· β 2 min read
Item-16 Use the same form in corresponding uses of new and delete
· β 2 min read
If you use [] in a new
expression, use [] in the corresponding delete
expression; If not, no [] in the matching delete
expression.