Working with Modules in C++20

In this recipe, we will learn more about a new feature coming with C++20 called Modules. This recipe is important as C++20 Modules removes the need for #include moving forward. C++ code today is usually divided between headers and source files. Every source file is compiled separately and must recompile the headers that it includes (and any headers the included headers include), resulting in slow compile times, dependency order issues, and the overuse of C-style macros. Instead, optionally, libraries will be included using C++20 Modules, changing the way we program even simple applications such as "Hello World".

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset