Namespaces
Variants

Template:drev

From cppreference.com
[edit] [{{purge}}] Template documentation

Used to declare that certain part of the description is valid to only specific revisions of the standard.

{{rev begin|noborder=true-if-noborder (optional)}}

Begins the set of text snippets specific to a specific revision(s) of the standard. If the noborder parameter is true then the table is displayed with no border and as little padding as possible.

{{rev|since=since-std (optional)|until=until-std (optional)|text }}

Specifies that text is valid only for standard revisions since since-std until until-std (until-std is not inclusive).

{{drev|since=since-std (optional)|until=until-std (optional)|since_doc=since-doc (optional)|until_doc=until-doc (optional)|text }}

Specifies that text is valid only for standard revisions since since-std until until-std (until-std is not inclusive).
since_doc / until_doc generate links to their corresponding Compiler Support Table (CST) entries. The provided argument must exactly match capitalized proposal name used within the CST (excluding file extension, if any).
In rare cases where a proposal appears in more than one CST entries, an additional ID anchor can be explicitly assigned to the target entry in the CST. This ID can then be passed as the argument to since_doc / until_doc.

{{rev end}}

Ends the set of text snippets specific to a specific revision(s) of the standard.

{{rrev|noborder=true-if-noborder (optional)|since=since-std (optional)|until=until-std (optional)|since_doc=since-doc (optional)|until_doc=until-doc (optional)|text }}

A combined {{rev begin}}/{{drev}}/{{rev end}}, for when only a single {{drev}} is needed.

{{rrev multi|noborder=true-if-noborder (optional)|sinceX=since-std (optional)|untilX=until-std (optional)|since_docX=since-doc (optional)|until_docX=until-doc (optional)|revX=text |... }}

A combined {{rev begin}}/{{drev}}/{{rev end}}. Up to 7 snippets are supported. The default for sinceX is untilX-1 and default for untilX is sinceX+1. Thus, it is most useful when the snippets are relatively short and the revision ranges consecutive. This template may be substituted.

{{rev inl|id=id (optional)|since=since-std (optional)|until=until-std (optional)|since_doc=since-doc (optional)|until_doc=until-doc (optional)|noborder=true-if-noborder (optional)|text }}

Same as {{drev}}, just is displayed inline. {{rev begin}} and {{rev end}} must not be used. The text can be referenced with id .

Border is omitted if the noborder parameter is true .


{{rel|table }} - allows the first row of a table to stay in the same row as a label generated by @@-family.

Wiki text Effect
@1@ item 1
@2@ {{rrev|since=c++11|item 2}}
1) item 1
2)
item 2 (since C++11)
@1@ item 1
@2@ {{rel|{{rrev|since=c++11|item 2}}}}
 
1) item 1
2)
item 2 (since C++11)