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

> C++ Atlas: `cppatlas.com/w/cpp/identifier_with_special_meaning/import` | Source: https://en.cppreference.com/w/cpp/identifier_with_special_meaning/import | Domain: Language

## Official Specification Summary (cppreference)

### Usage

- `module` *import declaration*: imports a set of translation units

### Example

```cpp
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`](https://en.cppreference.com/w/cpp/keyword/export), [`module`](https://en.cppreference.com/w/cpp/identifier_with_special_meaning/module)

---
Attribution: content from https://en.cppreference.com/w/cpp/identifier_with_special_meaning/import (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.