Can I call `delete` on a vector of pointers in C++ via for_each ?

后端 未结 7 1639
醉梦人生
醉梦人生 2021-01-14 08:32

Suppose I have a std::vector objs (for performance reasons I have pointers not actual Objs).

I populate it with obj.push

7条回答
提交回复
热议问题