Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the essentials of C++20 modules in this comprehensive conference talk from CppCon 2023. Gain practical knowledge on implementing modules, understanding their impact on the build process, and adopting best practices for code structure. Learn how to set up module-based projects using CMake, interact with existing header-based code, and navigate common pitfalls. Discover the named modules mechanism, file extension conventions, and techniques for mixing headers with modules. Suitable for developers new to C++20 modules, the talk covers widely available features in modern compilers and build tools, emphasizing real-world applicability and addressing key differences from traditional header-based approaches.
Syllabus
Introduction
Overview
How Modules Work
Exports
Primary
Interface Implementation
Interface Partitions
Building Modules
Additional Magic
Requirements
Rule of Thum
File Extensions
Build Systems
Compiler
Build System
Advice
Global Module Fragment
Mixing Headers and Modules
Include Guard
Export using declarations
Export using headers
Clean interface
Conclusion
Questions
Taught by
CppCon