That's some crazy new syntax (I remember seeing in another thread as well). I see they're trying to make it look like piping in a terminal. I wonder if the syntax being like is easier for a compiler to optimize, or if the main purpose is simply to avoid having to write possibly error-prone loops.
std::view got renamed into std::views at the last committee meeting, and that cppreference example was updated 5 days before this post. How did you get a stale copy?
Ganado wrote:
That's some crazy new syntax
ranges were part of boost since 2004, though they reached more-or-less current shape only in 2009 or so, a decade ago. That's when I first used them.