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 » Problem when growing a vector
Problem when growing a vector [message #42313] Thu, 06 March 2014 17:10 Go to previous message
NeilMonday is currently offline  NeilMonday
Messages: 15
Registered: May 2013
Promising Member
Hello, I am seeing some behavior that I do not understand when adding to a Vector. I understand that a Vector needs to grow to accommodate new elements. However, it appears that some of my elements are being de-allocated when the Vector grows. Can anyone help me understand why this happens and how I can prevent my elements from being deleted?

Before growing the Vector
http://i.imgur.com/CEl4L46.png

After growing the Vector
http://i.imgur.com/byc9JSG.png
 
Read Message
Read Message
Read Message
Previous Topic: Pointer on Labels defined in lay.h
Next Topic: SQL : how to prevent duplicates ?
Goto Forum:
  


Current Time: Mon May 13 21:19:40 CEST 2024

Total time taken to generate the page: 0.01870 seconds