View Single Post
Old 11-30-2005, 06:28 PM   #16 (permalink)
Pragma
I am Winter Born
 
Pragma's Avatar
 
Location: Alexandria, VA
What I was going at - but failed to mention - is what happens if you have an array that's larger than your largest block of contiguous memory? Using a vector, it's possible to store that, having it broken into chunks scattered wherever there's space, as opposed to simply going "Hrm, we need to add elements, okay, let's go find a new chunk of free memory that's current+50 bytes."

That's what happens when I don't completely explain myself
__________________
Eat antimatter, Posleen-boy!
Pragma is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57