Loading…
This event has ended. Visit the official site or create your own event on Sched.
Back To Schedule
Tuesday, September 26 • 3:15pm - 4:15pm
Class Template Argument Deduction: A New Abstraction

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

Feedback form is now closed.
C++17 is often quoted as “just a better C++14”, suggesting that nothing is new, nothing is changing the way we program. This talk presents class template argument deduction as a counterexample, a hidden gem in the new standard.

Saves typing? A replacement for the `make` functions? If that’s your frame, then you should come to this talk. The true power of class template argument deduction is underestimated. It’s a new point of abstraction but requiring creativity, insights, and understanding about the language details to manage.

This talk will start by introducing all matters about this feature to build up sufficient background knowledge, followed by teaching how to write deduction guides by examples, and finally explain how to build abstractions using the whole feature in a top-down approach, with patterns categorized.

Speakers
avatar for Zhihao Yuan

Zhihao Yuan

HPC Engineer, SimpleRose Inc
Zhihao Yuan is an HPC Engineer at SimpleRose Inc. He participated in standardizing designated initializers and improved narrowing conversions in C++20. After giving a talk on CppCon to advocate NOT to program any macros, he dived into a project where the number of identifiers that... Read More →


Tuesday September 26, 2017 3:15pm - 4:15pm PDT
Berry Hall Meydenbauer Center
  •C++17 and Beyond