Spec-Zone.ru › C++

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

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>

See also

  • export, module

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/identifier_with_special_meaning/import

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API