std.allocator needs your help

Jacob Carlborg doob at me.com
Mon Sep 23 06:38:33 PDT 2013


On 2013-09-23 11:31, qznc wrote:

> 5. Class local - The allocator is used for specific types (e.g. ASTNode
> in a compiler)
>
> 6. Class-hierarchy - The allocator is used for a specific type hierarchy
> (e.g. ASTNode might have sub classes Statement,BinOp,etc)
>
> 7. Container local - The C++ way which binds allocation to a wrapping
> container
>
> 8. Task local - like Thread local but for std.parallelism.Task
>
> That's it for now.
>
> This is quite a long list, which means it is probably exhaustive. There
> should be a generic approach which encompasses at least those cases.

That's a good addition to the list.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list