Jeremy Pullicino
2003-09-26 09:39:56 UTC
I have a set which I wish to copy into a vector (which is initially empty)
I am using std::copy to accomplish this.
Before the copy, I am using the resize member of vector to resize the vector
to the size of the set.
I am unsure however if I should additionaly be using reserve.
Should I call reserve before calling resize?
What is the use of reserve?
Jeremy.
I am using std::copy to accomplish this.
Before the copy, I am using the resize member of vector to resize the vector
to the size of the set.
I am unsure however if I should additionaly be using reserve.
Should I call reserve before calling resize?
What is the use of reserve?
Jeremy.