0

In C++, the type of a function member can be seen as :

R(C::*)(Args...) qualifiers/specifiers

I am wondering if the part that is before the (Args...) has an official name (I mean R(C::*))? (like the function declarator or something like that)

4

1 回答 1

4

R(C::*)没有名字。它是两种不同语法产生式的串联。Rtype-specifier-seq(C::*)而是noptr -abstract-declarator。但是noptr-abstract-declarator绑定到parameters-and-qualifiers (Args...)等等,比绑定到type-specifier-seq更强。这有点像表达式1+2*3中没有子字符串的名称,1+2因为它没有独立的含义。

于 2015-12-09T02:08:22.310 回答