automem v0.0.7 - C++ style smart pointers using std.experimental.allocator
Atila Neves via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Tue Apr 11 16:26:30 PDT 2017
On Tuesday, 11 April 2017 at 22:32:51 UTC, Martin Nowak wrote:
> 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?
That's the general idea, but I confess I didn't even look at
Array.
Atila
More information about the Digitalmars-d-announce
mailing list