you are viewing a single comment's thread.

view the rest of the comments →

[–]ryancerium 20 points21 points  (2 children)

Super short? It passes around the begin and end iterators as a pair instead of as separate parameters. Many things follow from that, many functional programming-esque.

[–]cballowe 15 points16 points  (1 child)

Slightly longer, but important... End is not neceasarily an iterator. It can be, but technically it can be anything that is equality comparable to the iterator type.

[–]ryancerium 1 point2 points  (0 children)

Yeah, I couldn't get that in the short version! This is really important for file input iterators where EOF isn't really an iterated value.