protocol buffer中C++相关的api问题
ringa_lee
ringa_lee 2017-04-17 11:23:09
0
2
742

protocol buffer中通过add()相关方法,产生一个repeated属性的对象,然后把这个对象的指针放到STL容器中。
释放容器时,是需要先delete对象指针再clear容器,还是直接clear容器?

ringa_lee
ringa_lee

ringa_lee

reply all(2)
左手右手慢动作

I suggest you learn Chinese carefully

刘奇

Delete the object first. Directly clearing the container will cause memory leaks.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template