called copy constructor in foreach with ref on Range
kinke
noone at nowhere.com
Sun Jun 21 20:25:37 UTC 2020
A foreach over a custom range makes an initial copy, so that the
original range is still usable after the foreach (not empty).
More information about the Digitalmars-d-learn
mailing list