How i can clear Associative Arrays
Steven Schveighoffer
schveiguy at yahoo.com
Mon Apr 15 10:06:01 PDT 2013
On Sun, 14 Apr 2013 02:50:07 -0400, gedaiu <szabobogdan at yahoo.com> wrote:
> On Saturday, 13 April 2013 at 21:10:16 UTC, Nicolas Guillemot wrote:
>>> I think we should introduce a removeAll function for hashes. Either
>>> through Druntime or through a UFCS function that we could put in
>>> std.array or somewhere.
>>
>> How about .clear() for consistency with C++ containers?
>
> It looks nice... i am waiting for it :P
Might be confusing. clear used to do what destroy does now and is still
in TDPL.
-Steve
More information about the Digitalmars-d-learn
mailing list