c++ - What kind of declarator is this? -


so looking in c++ grammar syntax thing, came across grammar rule :

declarator: direct-declarator ptr-operator declarator  direct-declarator: declarator-id  declarator-id: id-expression ::opt nested-name-specifier(opt) type-name  <------- oo  type-name: class-name enum-name typedef-name 

which made me wonder kind of declarator has typename in it? example help. thanks

in form exists on older versions of c++ standard. guess there constructor definitions

void someclass::someclass() {} 

i'd guess following wording

a class-name has special meaning in declaration of class of name , when qualified name using scope resolution operator :: (5.1, 12.1, 12.4).

is intended accompany specific part of grammar.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -