Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

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

NotebookLM

Usage

Example

snippet.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

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.