vector's clear vs setsize
Posted
by SWKK
on Stack Overflow
See other posts from Stack Overflow
or by SWKK
Published on 2010-04-29T16:21:32Z
Indexed on
2010/04/29
16:37 UTC
Read the original article
Hit count: 280
c++
I read on the net someplace that in a tight loop if you are clearing your vector repetitively, it might be better to use setsize as it might be faster. I am not sure about this. Anyone's got a definitive answer to this?
© Stack Overflow or respective owner