protocol for using InputRanges

Walter Bright newshound2 at digitalmars.com
Fri Mar 28 19:23:29 PDT 2014


On 3/28/2014 3:42 AM, Steven Schveighoffer wrote:
>> I'm also curious what a generic read() should do when the stream is empty.
>
> Returns 0 elements read.

Meaning it must also write through a pointer if it did read something.

How is that faster than a 1 element buffer?



More information about the Digitalmars-d mailing list