C++ Modules: Getting Started Today - Lecture
Offered By: CppCon via YouTube
Course Description
Overview
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
Related Courses
CompilersStanford University via Coursera Compilers
Stanford University via edX Computation Structures 2: Computer Architecture
Massachusetts Institute of Technology via edX Compilers: Theory and Practice
Georgia Institute of Technology via Udacity Architecture, Algorithms, and Protocols of a Quantum Computer and Quantum Internet
Delft University of Technology via edX