Rewriting a c++ template to D (replacing iterator with ranges "properly")

aliak something at something.com
Sat Jan 27 18:45:24 UTC 2018


On Friday, 26 January 2018 at 23:15:41 UTC, Simen Kjærås wrote:
>
> The function is called fill, and assigns a value to every 
> element in the range. If a[0] = false compiles, we also want 
> a.fill(false) to compile. It's simply testing that, rather than 
> caring about the exact type of the elements.
>
> --
>   Simen

I see. Yes that makes sense. Thank you.


More information about the Digitalmars-d-learn mailing list