C++Now 2014 has ended
Please visit the C++Now website.
Back To Schedule
Tuesday, May 13 • 4:30pm - 6:00pm
Value Semantics and Range Algorithms - Composability and Efficiency

Log in to save this to your schedule, view media, leave feedback and see who's attending!

I want to write one line of code to compute the top N elements in a sequence which satisfy a specific predicate. And I want to write the same line of code regardless of whether I can do this in-place or not:

  x = std::slice(std::sort(std::filter(y, predicate)), 0, 10);

In this talk I will present a design of range algorithms which give them value semantics and show how this provides significant expressive power over other designs through composition. Finally, I will provide a reasonably in-depth treatment of the efficiency concerns this design presents and how we can overcome them and more.

avatar for Chandler Carruth

Chandler Carruth

Software Engineer, Google
Chandler Carruth leads the Clang team at Google, building better diagnostics, tools, and more. Previously, he worked on several pieces of Google’s distributed build system. He makes guest appearances helping to maintain a few core C++ libraries across Google’s codebase, and is... Read More →

Tuesday May 13, 2014 4:30pm - 6:00pm MDT

Attendees (0)