Oh, that's a goog idea, thanks.
Instead of calling clear(), reserve(...) and using push_back(...) to manipulate the vector, I can use resize() and subsequently operator[](...).
That makes it easier and results in compacter code.
Sincerely, Chris.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: Clearing ::std::vector<float>Threaded View
|
Click Here to Expand Forum to Full Width |