Emptying D Arrays and std.container.Arrays

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 16 09:06:37 PST 2015


On Monday, 16 February 2015 at 17:00:39 UTC, Tobias Pankrath 
wrote:
> You can set the length to zero for both.

Thanks.

I believe C++ programmers would find a tiny wrapper function, say 
clear(), in std.algorithm or perhaps even D array builtin for 
this nice from a portability point of view.


More information about the Digitalmars-d-learn mailing list