To GC or Not To GC in std.container.*

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 23 12:16:31 PST 2015


On Monday, 23 February 2015 at 19:24:32 UTC, Steven Schveighoffer 
wrote:
> In answer to your question, RBNode should not be accessible 
> direction outside of RedBlackTree. But we don't have allocators 
> inside of Phobos, so I used the easiest thing I could for 
> portability.
>
> -Steve

Does this mean that in the long run RBTree should allocate its 
RBNodes using a non-GC allocator (such as std.allocator) instead?


More information about the Digitalmars-d-learn mailing list