automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

Martin Nowak via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Apr 11 15:32:51 PDT 2017


On Monday, 10 April 2017 at 08:31:28 UTC, Atila Neves wrote:
>> ```d
>> import std.experimental.allocator.mallocator;
>> UniqueArray!(int, Mallocator) a;
>> a ~= [0,1];
>> ```

So the difference between std.container.Array and UniqueArray is 
that the latter supports allocators?


More information about the Digitalmars-d-announce mailing list