Namespaces
Variants

C++ keyword: export

From cppreference.net
C++ language
General topics
Flow control
Conditional execution statements
Iteration statements (loops)
Jump statements
Functions
Function declaration
Lambda function expression
inline specifier
Dynamic exception specifications ( until C++17* )
noexcept specifier (C++11)
Exceptions
Namespaces
Types
Specifiers
constexpr (C++11)
consteval (C++20)
constinit (C++20)
Storage duration specifiers
Initialization
Expressions
Alternative representations
Literals
Boolean - Integer - Floating-point
Character - String - nullptr (C++11)
User-defined (C++11)
Utilities
Attributes (C++11)
Types
typedef declaration
Type alias declaration (C++11)
Casts
Memory allocation
Classes
Class-specific function properties
Special member functions
Templates
Miscellaneous

用法

用于标记一个 类模板定义 已导出  ,允许在其他翻译单元中声明同一模板但无需定义。

(C++11 前)

该关键字未被使用且被保留 

(C++11 起)
(C++20 前)

将声明、一组声明或其他 模块 标记为当前模块所导出。

(C++20 起)

注释

功能测试宏 标准 功能特性
__cpp_modules 201907L (C++20) 模块 — 核心语言支持

参见

(C++11 前)
(C++20 起)