std.v2020.algorithm etc[ WAS: Is run.d going to be expand for runtime and the phobos library?]

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Jun 21 00:05:01 UTC 2020


On 6/20/20 12:41 PM, Stanislav Blinov wrote:
> Being able to call front() several times does not necessitate the 
> *range* being buffering.

If one calls front() twice without advancing the range, where does the 
range return the value from?

Input ranges must buffer one element at least (input iterators in STL, 
too). This has been a source of annoyance in implementing them.


More information about the Digitalmars-d mailing list