Home » Community » Newbie corner » U ++ Vector vs STL vector
Re: U ++ Vector vs STL vector [message #27342 is a reply to message #27334] |
Tue, 13 July 2010 10:16   |
|
The main difference between Vector and vector IMHO is the speed Since for Vector a=b just moves (pickes) the content, instead of copying it into the new container, it is way faster. In real life, most of the operations with containers doesn't care about the content of b after the operation. Sometimes it requires the programmer to think bit more about what he's doing, but the performance gain really pays off (See comparisons). I think I could count on my fingers how many times I had to use the deep copy operator <<=.
Honza
|
|
|
Goto Forum:
Current Time: Wed Jun 25 16:30:49 CEST 2025
Total time taken to generate the page: 0.04233 seconds
|