On Thursday, 12 December 2013 at 16:45:05 UTC, H. S. Teoh wrote:
I do this with my own ranges sometimes. Sometimes, it's more performant to precompute the value of .front and store it (as .front)

Yeah, that's exactly what I was doing here.

My question was mostly on if there's the chance that someone will call front() but looks like that isn't supposed to happen and is wrong if it does, so cool.

Reply via email to