- 论坛徽章:
- 1
|
windoze 发表于 2015-09-20 12:34 ![]()
回复 7# irp
签名是signature,不是prototype。
恩,的确,签名的确有这个东西,c标准没有这个概念,c++标准有这个概念,貌似为了name mangling and linking。
我查了下标准draft, 这是个比较复杂的概念,涵盖很多情况。
1.3.17 [defns.signature]
signature
<function> name, parameter type list (8.3.5), and enclosing namespace (if any)
[ Note: Signatures are used as a basis for name mangling and linking. — end note ]
1.3.18 [defns.signature.templ]
signature
<function template> name, parameter type list (8.3.5), enclosing namespace (if any), return type, and
template parameter list
1.3.19 [defns.signature.spec]
signature
<function template specialization> signature of the template of which it is a specialization and its template
arguments (whether explicitly specified or deduced)
1.3.20 [defns.signature.member]
signature
<class member function> name, parameter type list (8.3.5), class of which the function is a member, cv qualifiers (if any), and ref-qualifier (if any)
1.3.21 [defns.signature.member.templ]
signature
<class member function template> name, parameter type list (8.3.5), class of which the function is a member,
cv -qualifiers (if any), ref-qualifier (if any), return type, and template parameter list
1.3.22 [defns.signature.member.spec]
signature
<class member function template specialization> signature of the template member function template of
which it is a specialization and its template arguments (whether explicitly specified or deduced)
1.3.23 [defns.static.type] |
|