Closed burner closed 8 years ago
You're right. I don't know why I didn't use it in the first place. I'll fix it. The method will remain, as it also contains the logic to decide the expansion factor.
No problem, sometimes you/me/everybody just misses stuff.
+1
https://dlang.org/phobos/std_experimental_allocator.html#.expandArray
expandArray does what you implemented in enlarge. Maybe even remove enlarge all together.