std::meta::has_internal_linkage, std::meta::has_module_linkage, std::meta::has_external_linkage, std::meta::has_linkage
From cppreference.com
| Defined in header <meta>
|
||
consteval bool has_internal_linkage( std::meta::info r );
|
(1) | (since C++26) |
consteval bool has_module_linkage( std::meta::info r );
|
(2) | (since C++26) |
consteval bool has_external_linkage( std::meta::info r );
|
(3) | (since C++26) |
consteval bool has_linkage( std::meta::info r );
|
(4) | (since C++26) |
Determines if r represents a variable, function, type, template, or namespace whose name has the specified linkage.
The result is true if and only if r represents an entity whose name has
1) internal linkage
2) module linkage
3) external linkage
4) any linkage
Contents
Parameters
| r | - | a reflection value |
Return value
true if r represents an entity whose name has the specified linkage; otherwise false.
Notes
If r does not represent an entity, the result is false.
Example
| This section is incomplete Reason: no example |
See also
(C++26) |
checks if the reflected entity has "C" language linkage (extern "C") (function) |