Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore a comprehensive conference talk on library approaches for creating strong type aliases in C++. Delve into the challenges of using built-in types for specific purposes and learn about a template-based solution for defining distinct types with customizable properties. Discover how this approach can enhance code clarity, prevent confusion in function interfaces, and improve type safety. Gain insights from Anthony Williams, author of "C++ Concurrency in Action," as he presents his library solution and demonstrates its practical applications. Understand the concept of strong typedefs, their benefits in domain-specific programming, and how they compare to use-specific classes like std::duration. Follow along as Williams covers topics such as basic definitions, property definitions, combining properties, hashing, custom properties, and debugging techniques for strong type aliases.
Syllabus
Intro
Library Approaches for Strong Type Aliases
Problem 3
Domain values
One-off values
Common operations
Basic definition
Property definitions
Combining properties
Hashing
Custom properties
Example Uses
Debugging
Taught by
CppNow