FYI - mo' work on std.allocator

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 27 08:34:21 PDT 2014


On 4/27/14, 4:13 AM, "Marc Schütz" <schuetzm at gmx.net>" wrote:
> Also, there is an `expand()` method, but no `shrink()`. Is that an
> oversight, or intentional?

I tried to avoid it because it's error-prone. reallocate() should shrink 
in place where appropriate. But I'll add it if it turns out it's necessary.

Andrei



More information about the Digitalmars-d mailing list