Skip to content

Search topics & cppreference

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

C++ keyword: export

Keywords
  • C++11
  • C++20
1 min readView on cppreference
NotebookLM

Usage

Used to mark a template definition exported, which allows the same template to be declared, but not defined, in other translation units.

(until C++11)

The keyword is unused and reserved.

(since C++11)
(until C++20)

Marks a declaration, a group of declarations, or another module as exported by the current module.

(since C++20)

See also

  • template (mark a template definition exported)
(until C++11)
(since C++20)

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.