Prevent copy of range in foreach

mogu via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 31 05:52:36 PDT 2016


On Tuesday, 30 August 2016 at 19:06:46 UTC, Yuxuan Shui wrote:
> Is there a way to use a range defined with disabled post-blit 
> in foreach? In other words, is there a way to prevent foreach 
> from copying the range?
>
> Should I use move()?
国人?望加群:531010036 谢谢


More information about the Digitalmars-d-learn mailing list