第26页 Item 7.如果容器中包含了通过new创建的指针,切记在容器对象析构前将指针delete掉
JerryZ对本书的所有笔记 · · · · · ·
-
第26页 Item 7.如果容器中包含了通过new创建的指针,切记在容器对象析构前将指针delete掉
-
第30页 Item9.慎重选择删除元素的方法
1.the erase-remove idiom is the best way to get rid of elements with a specific value w...
-
第33页 Item9.慎重选择删除元素的方法
*To eliminate all objects in a container that have a particular value: If the container...
> 查看全部8篇
说明 · · · · · ·
表示其中内容是对原文的摘抄