- 論壇徽章:
- 1
|
windoze 發(fā)表于 2015-09-20 12:34 ![]()
回復(fù) 7# irp
簽名是signature,不是prototype。
恩,的確,簽名的確有這個東西,c標(biāo)準(zhǔn)沒有這個概念,c++標(biāo)準(zhǔn)有這個概念,貌似為了name mangling and linking。
我查了下標(biāo)準(zhǔn)draft, 這是個比較復(fù)雜的概念,涵蓋很多情況。
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] |
|