名稱空間
變體
操作

C++ 具有特殊含義的識別符號: import (C++20 起)

來自 cppreference.com
< cpp
 
 
C++ 語言
 
 

[編輯] 用法

[編輯] 示例

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>

[編輯] 另見