Proposal for SentinelInputRange

Walter Bright newshound2 at digitalmars.com
Wed Feb 27 21:28:17 PST 2013


On 2/27/2013 9:20 PM, deadalnix wrote:
> If the range define empty with something like front == sentinel, the inliner
> should kick in a reduce the whole stuff to only one read, no ?

     auto c = front;
     if (c == sentinel || c == XX)

is two reads. This may not seem important, but when you want high speed, it can 
halve it.


More information about the Digitalmars-d mailing list