tmp/tmpsfggx3bf/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
##### Exposition-only types <a id="expos.only.types">[[expos.only.types]]</a>
|
| 2 |
+
|
| 3 |
+
Several types defined in Clauses [[language.support]] through
|
| 4 |
+
[[thread]] and Annex [[depr]] that are used as function parameter or
|
| 5 |
+
return types are defined for the purpose of exposition only in order to
|
| 6 |
+
capture their language linkage. The declarations of such types are
|
| 7 |
+
followed by a comment ending in *exposition only*.
|
| 8 |
+
|
| 9 |
+
[*Example 1*:
|
| 10 |
+
|
| 11 |
+
``` cpp
|
| 12 |
+
namespace std {
|
| 13 |
+
extern "C" using some-handler = int(int, void*, double); // exposition only
|
| 14 |
+
}
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
The type placeholder `some-handler` can now be used to specify a
|
| 18 |
+
function that takes a callback parameter with C language linkage.
|
| 19 |
+
|
| 20 |
+
— *end example*]
|
| 21 |
+
|