Namespaces
Variants
Views
Actions

Template:ref std/doc

From cppreference.com

{{ref std c89}}

{{ref std c99}}

{{ref std c11}}

{{ref std c++98}}

{{ref std c++03}}

{{ref std c++11}}

{{ref std c++14}}

{{ref std end}}

{{ref std| section=section| title=title| id=id(optional)| p=pages (optional)}}

Applies consistent formatting to the references to the C++ standards in the "References" section. Each section must always start with {{ref std c++*}} and end with {{ref std end}}.

[edit] Example

 
  {{ref std c++11}}
  {{ref std | section=8.3.5 | title=Functions | id=dcl.fct}}
  {{ref std | section=8.3.6 | title=Default arguments | id=dcl.fct.default | p=1-2,4}}
  {{ref std end}}
  {{ref std c++98}}
  {{ref std | section=8.3.5 | title=Functions | id=dcl.fct}}
  {{ref std | section=8.3.6 | title=Default arguments | id=dcl.fct.default | p=1-2,4}}
  {{ref std end}}
  

The above wikitext is rendered as:

  • C++11 standard (ISO/IEC 14882:2011):
  • 8.3.5 Functions [dcl.fct]
  • 8.3.6 Default arguments [dcl.fct.default](p: 1-2,4)
  • C++98 standard (ISO/IEC 14882:1998):
  • 8.3.5 Functions [dcl.fct]
  • 8.3.6 Default arguments [dcl.fct.default](p: 1-2,4)