C++ identifier with special meaning: import
(since C++20)
From cppreference.net
< cpp
Usage
-
module
import declaration: imports a set of translation units
Notes
Feature-test macro | Value | Std | Feature |
---|---|---|---|
__cpp_modules |
201907L |
(C++20) | Modules — core language support |
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>