Skip to Content
C++20 for Programmers: An Objects-Natural Approach, 3rd Edition
book

C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

by Paul Deitel, Harvey Deitel
April 2022
Intermediate to advanced
1012 pages
38h 1m
English
Pearson
Content preview from C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

16. C++20 Modules: Large-Scale Development

Objectives

In this chapter, you’ll:

  • Understand the motivation for modularity, especially for large software systems.

  • See how modules improve encapsulation.

  • import standard library headers as module header units.

  • Define a module’s primary interface unit.

  • export declarations from a module to make them available to other translation units.

  • import modules to use their exported declarations.

  • Separate a module’s interface from its implementation by placing the implementation in a :private module fragment or a module implementation unit.

  • See what compilation errors occur when you attempt to use non-exported module items.

  • Use module partitions to organize modules into logical components.

  • Divide a module into ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Designing Data-Intensive Applications, 2nd Edition

Designing Data-Intensive Applications, 2nd Edition

Martin Kleppmann, Chris Riccomini

Publisher Resources

ISBN: 9780136905776