Пространства имён
Варианты
Действия

Шаблон:ddcl list/doc

Материал из cppreference.com

This is one of the family of templates used for creation of detailed declaration lists.

List template families

  • dcl list **** : For creation of member variable/function lists.
  • ddcl list **** : For creation of detailed declaration lists (those including actual declaration code)
  • sdcl list **** : For creation of lists representing various syntaxes of a language feature. Used in subpages of cpp/language
  • param list **** : For creation of lists explaining function parameters.
  • sb list **** : For creation of feature lists in navbars.

{{ddcl list begin}}

starts the declaration list

{{ddcl list header}}

adds explanation which header the feature comes from

{{ddcl list sep}}

adds a separator

{{ddcl list item| notes=notes| num=num| declaration}}

adds an item to the declaration list. The notes parameter is optional and may be used to add notes about the feature. The num parameter is also optional and may be used for numbering purposes. declaration is the declaration of the feature. This template automatically adds {{ddcl list sep}} above the item.

{{ddcl list end}}

ends the declaration list. This template automatically adds {{ddcl list sep}} above the item.

[править] Example

 
  {{dcl begin}}
  {{dcl header | abcd.h}}
  {{dcl | notes=Faster than {{c|abc_slow}} | num=1 |
    template< class T> abc;
  }}
  {{dcl end}}
  

The above results in the following:

Определён в заголовочном файле <abcd.h>
template< class T > abc;
(1) Faster than abc_slow