Changeset 3961
- Timestamp:
- 10/04/08 02:13:58 (2 months ago)
- Files:
-
- trunk/tango/util/container/more/Heap.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tango/util/container/more/Heap.d
r3960 r3961 36 36 { 37 37 while (heap.length <= next) 38 { 39 heap.length = 2 * heap.length + 32; 40 } 38 heap.length = 2 * heap.length + 32; 39 41 40 heap[next] = t; 42 41 fixup (next); … … 47 46 void push (T[] array) 48 47 { 49 while (heap.length < next + array.length) 50 { 51 heap.length = 2 * heap.length + 32; 52 } 48 if (heap.length < next + array.length) 49 heap.length = next + array.length + 32; 50 53 51 foreach (t; array) push (t); 54 52 }












