Template:ref std/doc
来自cppreference.com
{{ref std c89}}
{{ref std c99}}
{{ref std c11}}
{{ref std c17}}
{{ref std c23}}
{{ref std c++98}}
{{ref std c++03}}
{{ref std c++11}}
{{ref std c++14}}
{{ref std c++17}}
{{ref std c++20}}
{{ref std c++23}}
{{ref std c++26}}
{{ref std end}}
{{ref std|section=章节 |title=标题 |id=id (可选)|p=页码 (可选)}}
将一致的格式应用到“引用”小节中对于 C++ 标准的各条引用。每节必须始终以 {{ref std cXX}}
(用于 C)/ {{ref std c++XX}}
(用于 C++)开始,并以 {{ref std end}}
结束。
[编辑] 示例
{{ref std c++11}} {{ref std | section=8.3.5 | title=函数 | id=dcl.fct}} {{ref std | section=8.3.6 | title=默认实参 | id=dcl.fct.default | p=1-3,5}} {{ref std end}} {{ref std c++98}} {{ref std | section=8.3.5 | title=函数 | id=dcl.fct}} {{ref std | section=8.3.6 | title=默认实参 | id=dcl.fct.default | p=1-3,5}} {{ref std end}}
以上文本结果如下:
- C++11 标准(ISO/IEC 14882:2011):
- 8.3.5 函数 [dcl.fct]
- 8.3.6 默认实参 [dcl.fct.default](第 1-2,4 页)
- C++98 标准(ISO/IEC 14882:1998):
- 8.3.5 函数 [dcl.fct]
- 8.3.6 默认实参 [dcl.fct.default](第 1-2,4 页)