Structure scope is the context just inside the braces
associated with a structure definition.
StructureDefinition ::= StandardStructureDefinition |
BitFieldStructureDefinition | DerivedFromSimpleStructureDefinition
There are three different subsets of structure definition,
based on how the structure was defined.
MemberFunctionDeclaration ::= FunctionDeclaration
FunctionDeclaration ::= (DataStructureType | ‘void’) S (‘*’)? S?
IdentifierName S? ‘(‘ S? ParameterList S? ‘)’ S? ‘{‘ S? FunctionBodyDefinition
S? ‘}’ S? ‘;’
For member function declarations in structure definitions,
the function name uniquely identifies the function. The
name is an identifier that has not appeared earlier in the
definition as a construct name, an enumerated constant
block name, an enumerated constant name, a member
variable name, or a member function name.
Member functions can be declared in standard structure definitions
and bit field structure definitions, but not derived-from-simple
structure definitions.
Select from one of the following links to learn about the three different
subsets of structure definition.
See also: [Standard structure
definitions] [Bit field structure
definitions] [Derived-from-simple structure
definitions]
|