funcdef
funcdef — A function (subroutine) name and its return type.
Synopsis
funcdef ::= × ⏵
- Zero or more of:
- text
function
replaceable
templatename
type
void
- Graphic inlines ⏵
- Indexing inlines ⏵
- Linking inlines ⏵
- Ubiquitous inlines ⏵
Attributes
Common attributes and common linking attributes.
No additional attributes.
Description
A funcdef
contains the name of a programming
language function and its return type.
Within the funcdef
, the function name is
identified with function
, and the rest of the content
is assumed to be the return type.
In the following definition, max
is the name
of the function and int
is the return type:
|<funcdef>int <function>max</function></funcdef>
Processing expectations
Formatted inline. For a complete description of the processing
expectations, see funcsynopsis
.
Attributes
Common attributes and common linking attributes.
- any attribute
Any attribute in any other explicit namespace
Parents
1 element contains funcdef
. × ⏵
Children
33 elements occur in funcdef
. × ⏵
See Also
Related elements: funcparams
, funcprototype
, funcsynopsisinfo
, function
, paramdef
, parameter
, returnvalue
, varargs
, void
.
Examples
1 |<article xmlns='http://docbook.org/ns/docbook'>
|<title>Example funcdef</title>
||
<funcsynopsis>
5 |<funcprototype>
|<funcdef>int <function>rand</function></funcdef>
|<void/>
|</funcprototype>
|</funcsynopsis>
10 ||
</article>