containers, iteration, and removal

Steven Schveighoffer schveiguy at yahoo.com
Mon Aug 27 06:27:44 PDT 2012


On Fri, 24 Aug 2012 13:35:57 -0400, Steven Schveighoffer  
<schveiguy at yahoo.com> wrote:


> foreach(bool doRemove, item; container)
> {
>     doRemove = predicate(item);
> }

Whoops, should be

foreach(ref bool doRemove, item; container)

-Steve


More information about the Digitalmars-d mailing list