Namespaces
Variants
Actions

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

From cppreference.com
< cpp
 
 
C++ language
General topics
 
Keywords
 

[edit] Usage

[edit] Notes

Feature-test macro Value Std Feature
__cpp_modules 201907L (C++20) Modules — core language support

[edit] 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>

[edit] See also

AltStyle によって変換されたページ (->オリジナル) /