From cppreference.com
Usage
: imports a set of translation units
Notes
Feature-test macro ValueStdFeature
(C++20)Modules — core language support Example
exportmodulefoo;importbar;// imports all module interface units of module barimport:baz;// imports the so-named module partition baz of module fooimport<set>;// imports a synthesized header unit formed from header <set>See also
,