A Practical Introduction to C++20's Modules

A Practical Introduction to C++20's Modules

ACCU Conference via YouTube Direct link

Modular Programming Modules separate a program into independent and interchangeable units • Modules hide the actual implementation and possibly data and • A module is not a package

2 of 15

2 of 15

Modular Programming Modules separate a program into independent and interchangeable units • Modules hide the actual implementation and possibly data and • A module is not a package

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

A Practical Introduction to C++20's Modules

Automatically move to the next video in the Classroom when playback concludes

  1. 1 VIRTUAL EVENT A Practical Introduction to C++20's Modules
  2. 2 Modular Programming Modules separate a program into independent and interchangeable units • Modules hide the actual implementation and possibly data and • A module is not a package
  3. 3 Module Names A number of identifiers joined by does
  4. 4 Modules and Namespaces
  5. 5 Module Partitions
  6. 6 Private Module Fragment • Keep interface and implementation separate without having multiple files • modification of the private module fragment cannot trigger recompilation of importers of the modul…
  7. 7 Global Module Everything must be attached to a module declared in a module
  8. 8 What Can Be Exported? variables classes, structs, functions, namespaces, template function classes, concepts
  9. 9 Implicit Exports
  10. 10 include and modules including a header in the module purview is not a good idea
  11. 11 Global Module Fragment . Only preprocessor directives allowed • Declarations not used in the named module are discarded and not • Use for headers which rely preprocessor state from the includer
  12. 12 Header Units
  13. 13 Advice for Headers Your own header. Try to convert it into a module including in the global module fragment
  14. 14 Advantages encapsulation and information hiding
  15. 15 Advice Visual Studio users: Use and leam modules with small hobby side projects all others: Wait for compiler and build system support

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.