How do you remove/insert elements in a dynamic array without allocating?

Jakob Ovrum jakobovrum at gmail.com
Mon Nov 5 20:40:47 PST 2012


On Tuesday, 6 November 2012 at 01:11:08 UTC, Malte Skarupke wrote:
> I want something similar to the stl vector, which only 
> re-allocates once your array grows past a certain size, not on 
> every append.

std.container.Array is similar to a shared_ptr<std::vector<T>>.



More information about the Digitalmars-d mailing list