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.

avatar for Zhihao Yuan

Zhihao Yuan

R&D Software Engineer, Broadcom Inc.
Zhihao Yuan is an R&D Software Engineer at Symantec, a division of Broadcom. He participated in standardizing designated initializers and improved narrowing conversions in C++20 but ends up almost exclusively programmed in Python last year and only recently picked up C++14 again... Read More →

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