C++ identifier with special meaning: import (since C++20)

From cppreference.com

Usage

module import declaration

: imports a set of translation units

Notes

Feature-test macro ValueStdFeature

__cpp_modules

201907L

(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

export

,

module