I have a vector with 1000 \"nodes\"
if(count + 1 > m_listItems.capacity()) m_listItems.reserve(count + 100);
The problem is I also
You can swap it with a new vector that has desired capacity.
swap
vector< int > tmp; old.swap( tmp );