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

mogu via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Apr 9 12:04:22 PDT 2017


On Sunday, 9 April 2017 at 08:56:52 UTC, Atila Neves wrote:
> Using std.experimental.allocator? Tired of writing `scope(exit) 
> allocator.dispose(foo);` in a language with RAII? Me too:
>
> [...]

Nice!

Should UniqueArray be implemented as a overloaded version of 
Unique? Unique!(Object[]) instead of UniqueArray!(Object).


More information about the Digitalmars-d-announce mailing list