C++ 具有特殊含義的識別符號: import
(C++20 起)
來自 cppreference.com
< cpp
[編輯] 用法
-
module
import declaration: 匯入一組翻譯單元
[編輯] 示例
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>