You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -384,6 +385,40 @@ Entities in it can be used in a C++ program by including the header
384
385
If documentation for the specified header does not exist yet, the `CHeader` and the `CppHeader` component will render the header name as plain text without a link.
385
386
</Aside>
386
387
388
+
### Link to Named Requirement
389
+
390
+
The `NamedReq` component renders an inline link to the documentation page of a named requirement.
391
+
392
+
```mdx
393
+
importNamedReqfrom"@components/NamedReq.astro";
394
+
395
+
A <NamedReqname="FunctionObject" /> type is the type of an object
396
+
that can be used on the left of the function call operator.
397
+
```
398
+
399
+
<Card title="Preview">
400
+
A <NamedReqname="FunctionObject" /> type is the type of an object
401
+
that can be used on the left of the function call operator.
402
+
</Card>
403
+
404
+
You can set the `bold` attribute to `true`, to make the requirement name appear in bold.
405
+
406
+
```mdx
407
+
importNamedReqfrom"@components/NamedReq.astro";
408
+
409
+
A <NamedReqname="FunctionObject"bold /> type is the type of an object
410
+
that can be used on the left of the function call operator.
411
+
```
412
+
413
+
<Card title="Preview">
414
+
A <NamedReqname="FunctionObject"bold /> type is the type of an object
415
+
that can be used on the left of the function call operator.
416
+
</Card>
417
+
418
+
<Aside type="tip">
419
+
If documentation for the specified named requirement does not exist yet, the `NamedReq` component will render the requirement name as plain text without a link.
420
+
</Aside>
421
+
387
422
## Feature Test Macros
388
423
389
424
The `FeatureTestMacro` component renders to a box that shows information about a feature test macro.
0 commit comments