Creating dynamic arrays of known size
Andrej Mitrovic
andrej.mitrovich at gmail.com
Fri Mar 9 06:10:21 PST 2012
Isn't this just as good?
Key[] keys;
keys.reserve(num_keys)
foreach (key; keys_in_aa)
keys ~= key;
More information about the Digitalmars-d
mailing list