Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

The main difference between Vector and vector IMHO is the speed Smile 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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What is the difference between Splitter and SplitterFrame?
Next Topic: Help needed.
Goto Forum:
  


Current Time: Wed Jun 25 16:30:49 CEST 2025

Total time taken to generate the page: 0.04233 seconds