std.allocator ready for some abuse

Jerry jlquinn at optonline.net
Mon Nov 4 10:42:29 PST 2013


Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> writes:

> On 10/25/13 7:23 AM, Manu wrote:
> Woke up this morning with the following idea.
>
> 1. We add two optional API functions:
>
> void[] alignedAllocate(size_t, uint);
> bool alignedReallocate(ref void[], size_t, uint);

A bit of bikeshedding:

Since you have 

allocate()
allocateAll()

I would use 

allocateAligned()
reallocateAligned()

to be more consistent.

Jerry


More information about the Digitalmars-d mailing list