3 ms·
What business do you have using a vector of bare pointers anyway? If you use smart pointers, the container's clear() will automatically free resources held by c
by quotemstr 15y ago
What business do you have using a vector of bare pointers anyway? If you use smart pointers, the container's clear() will automatically free resources held by container elements.
- trevelyan 15y agoDesire to avoid garbage collection and automatic memory management mostly.