C++ identifier with special meaning: import (since C++20)
Usage
-
moduleimport 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>
See also
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/identifier_with_special_meaning/import