- Preface
- Notes to Early Readers
- Into the Future with Modules
- Module Basics
- A Module Interface Unit (Abyssinian)
- A Module Implementation Unit (Aegean)
-
Building
Aegean -
Module Deep Dive
- Using a Module in Code
- Module Segments and Fragements
- Module Naming
-
module;Starts the Global Module Fragment -
Declarations
(export) module name(:partition); -
Declarations
(export) import (module.name)(:partition) -
export…or How Can I Export Thee? Let Me Count the Ways - What Cannot Be Exported?
- Exportable Entities in C++ Modules
-
Declaration
module :private - Module Linkage
- Comparison of Header and Module Builds (WIP)
- Partitions and Submodules (WIP)
-
A Partitioned Module (
Javanese) (WIP) - Private Module Fragement (Sphynx) (WIP)
- Resources
- About the Author
A Pragmatic Journey into C++ Modules
C++20 Modules from a Developer's Perspective
Modules in C++20 are a change that impacts every C++ developer. At a minimum, the third-party libraries you need will use them. Larger development teams will need them to increase productivity. This book pragmatically explains their use with examples built with the command line and CMake.
Minimum price
$8.00
$11.00
You pay
$11.00Author earns
$8.80About
About the Book
Categories
Feedback
Author
About the Author
Rudyard Merriam
FORTRAN IV was my first language in 1968. I attended a one-day-a-week six-week seminar at the State University of New York/Buffalo to learn the language and program submission to the IBM 704. I soon became a full-time computer operator at the university, working on a CDC 6400 and finishing my degree there. During that period, I was exposed to multiple languages: Algol, SNOBOL, Lisp (a lot of silly insipid parenthesis), and Pascal. I saw copies of the original Pascal compiler code.
I next worked at the University of Rochester Laboratory for Laser Energetics, where I trained and worked with Forth. Unfortunately, that position went away, and I moved to Houston. My positions there exposed me to assembly language, more Fortran and Forth, and PL/M and C for Intel embedded systems.
I started using C++ with the 1990 release of Turbo C++, switching to MSVC shortly after and until my retirement in 2006. With the demise of Windows XP, I switched to Linux using GCC and, more recently, Clang.
I've used C++ in robotics competitions for NASA and the National Institute of Science and Technology, winning some money but not the big prizes. They were great exercises.
In 2022, I snuck, by invitation, into the Toronto CppNorth convention for one evening. This sparked an interest in speaking, which I did at CppNorth and CppCon in '23 and again in Toronto in '24. This study of modules is proposed for this year's CppNorth conference.
I've also written for programming magazines in the '90s, Hackaday.com in the mid-2010s, and Medium.com for the last few years.
Contents
Table of Contents
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.