Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

C++ Modules: Getting Started Today - Lecture

CppCon via YouTube

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

Reviews

Start your review of C++ Modules: Getting Started Today - Lecture

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.