Enhance your C++ skills and improve your code quality, performance, and maintainability.
Experienced C++ developer and trainer with over 10 years of industry experience.
// [The global module fragment - optional]
module;
#include <stuff.hpp>
// [The module preamble]
export module foo:bar;
export import widgets;
import gadgets;
// [The module interface - optional]
export void do_stuff();
// [The private module fragment - optional]
module :private;
void do_stuff() {
std::cout << "Howdy!\n";
}
// [The end]
global module fragment