function | Function definition |
declaration := function-defn function-defn ::= [decl-specifier-seq] declarator [ctor-initializer] function-body | [decl-specifier-seq] declarator function-try-block function-body ::= compound-statement function-try-block ::= try [ctor-initializer] function-body handler-seq ctor-initializer ::= : member-initializer-list member-initializer-list ::= member-initializer | member-initializer-list , member-initializer member-initializer ::= member-initializer-id ( [expr-list] ) member-initializer-id ::= identifier | [::] [nested-name ::] class-name |
See Chapter 5 for information about functions and Chapter 6 for information about the special member functions, such as constructors. (A ctor-initializer applies only to the definition of a class constructor.)
class, declaration, declarator, statement, try, Chapter 5