std.allocator ready for some abuse
Namespace
rswhite4 at googlemail.com
Thu Nov 7 09:02:17 PST 2013
On Thursday, 7 November 2013 at 16:28:42 UTC, Andrei Alexandrescu
wrote:
> On 11/7/13 5:30 AM, Namespace wrote:
>> Nice! But I suggest two things:
>> 1. Add a reset function for reusing the same storage
>
> freeAll().
There is no freeAll. Did you mean deallocateAll?
----
void deallocateAll()
{
_crt = null;
}
----
_crt is null and the same storage can't be used again.
More information about the Digitalmars-d
mailing list