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

사용법

템플릿 정의 exported  로 표시하는 데 사용되며, 동일한 템플릿을 다른 번역 단위에서 선언(정의 없이)할 수 있게 합니다.

(C++11까지)

이 키워드는 사용되지 않고 예약됨  .

(C++11부터)
(C++20까지)

선언, 선언 그룹 또는 다른 모듈 을 현재 모듈에서 exported로 표시합니다.

(C++20부터)

참고 사항

기능 테스트 매크로 표준 기능
__cpp_modules 201907L (C++20) 모듈 — 핵심 언어 지원

참고 항목

  • template (템플릿 정의를 내보냄을 표시)
(C++11까지)
(C++20부터)