Explore modern C++ techniques for eliminating code repetition in this 51-minute conference talk. Learn how to construct zero-cost abstractions that express intent more clearly, making code easier to understand and debug. Discover function templates, nontype templates, object construction, type construction, private inheritance, and perfect forwarding. Gain practical skills to create your own abstractions, reducing micro-repetitions in your codebase and improving overall code quality. Apply these techniques to write more expressive and maintainable C++ code without sacrificing performance.
Overview
Syllabus
Introduction
Repetition
About me
Function templates
Nontype templates
Construct an object
Construct a type
Private inheritance
Good or bad
Indirection
Perfect forwarding
Taught by
NDC Conferences