Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
qcoh
· 6y ago · 0 comments
Out of curiosity, how did you do that in C++?
Comments
[–]
Ididntdothis
6y ago
It depends. Either iterate over the vector and delete the objects or just call clear(). Obviously you have to be sure that nobody else is accessing it at the same time.