A Journey into Ranges, Views, Pipelines, and Currying
Learning C++ is often like drinking from a fire hose. In December 2022, I started drinking from the Ranges library - and still am! Here is a journey into Ranges, Views, Pipelines, and Currying.
We'll see with code examples how Ranges improve on the Standard Template Library algorithms through easier and expanded usage with containers and non-container types. Along the way, you'll see some utility routines for peeking into pipelines and executing them. We'll also look at currying functions to add capabilities to pipelines.
Rud Merriam is a retired software developer, having lived through the spaghetti, structured programming, and object-oriented development paradigms. He's now trying to figure out functional programming.
Rud wrote his first FORTRAN IV in 1968 and his first C++ in 1990 with Borland's Turbo C++. Along the way, he developed computers that measured flow in real pipelines and used satellite communications to access swamps and mountaintops. He's competed with C++ in three NASA Centennial Challenges for robots on Mars and the Moon, winning some prize money along the way.