Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. void IncrementArray() { /* This Function Takes The Array Used To Store The Map And Treats It Like A Vector ->
  2. Doubling The Amount Of Allocated Spaces Aviliable And Coping The Old Array Over */
  3. // Doubling Size
  4. Map_Values<K, V>** Temp; // Create An New Array
  5. Temp = new Map_Values<K, V>*[_Size*2]; // Allocate The Size To It.
  6. for (int i = 0; i <= _Current; i++)
  7. {
  8. Temp[i] = _Maps[i];
  9. }
  10.  
  11. _Maps = Temp;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement