9. Function patterns
Introduced with version 3, the notion of function templates enables the definition of what are often referred to as "generic functions". More precisely, using a single definition with "type parameters", a whole family of functions is described; the compiler then "builds" (or "instantiates") the function(s) required for the application (these instances are often referred to as "template functions").
9.1 Definition
We specify the (mute) type parameters, preceding each with the (relatively arbitrary) word class in template form
template...
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!
Function patterns
Article included in this offer
"Control and systems engineering"
(
143 articles
)
Updated and enriched with articles validated by our scientific committees
A set of exclusive tools to complement the resources
References
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!