Usage
-
moduleimport declaration: imports a set of translation units
Example
export module foo;
import bar; // imports all module interface units of module bar
import :baz; // imports the so-named module partition baz of module foo
import <set>; // imports a synthesized header unit formed from header <set>See also
Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.