
|
Definitions
樒彎h2>
|
- arity: The number of arguments accepted
by a function or member function. Unless otherwise specified, the
hidden "
this" argument to member functions is not counted
when specifying arity
- Ԫʽ㨡rity㩼/a>㺼/b> ꯊ㉔ắʽ⎊越
㽷∥퓐馶裬Ԫʽ⻰쀨㉔ắʽҾ☵ġ༣ode>thisᱲΊ
- ntbs: Null-Terminated Byte String, or
`C'-string. C++ string literals are ntbses. An
ntbs must never be null.
- ntbs㺼/b>
cⵄז횴Null-Terminated Byte String㩣켴Cז維
C++ז維aʇntbsesᣍ
ntbs넜Ϊ㼯dt>
- raise: Exceptions in Python are
"raised", not "thrown", as they are in C++. When this documentation
says that some Python exception is "raised" in the context of C++ code,
it means that the corresponding Python exception is set via the Python/'C'
API, and
throw_error_already_set()
is called.
- 碳棨raise㩼/a>㺼/b>
ӫC++⻍죬Python儒쳣ʇ᰷㨲aise㩡ᣬ渲늇ᰅ׳棨throw㩡ᵄᣍ
山嵔ڃ++亂듯Ћ壬ӐPythonҬ㣱롰碳桱㬍
˼ᭊӦ儐ythonҬ㣍蹽Python/'C'
APIỉ薃㬍
Ȼ공瓃K
throw_error_already_set()ᣍ
- POD: A technical term from the C++
standard. Short for "Plain Ol'Data": A POD-struct is an aggregate class
that has no non-static data members of type pointer to member,
non-POD-struct, non-POD-union (or array of such types) or reference,
and has no user-defined copy assign- ment operator and no user-defined
destructor. Similarly, a POD-union is an aggregate union that has no
non-static data members of type pointer to member, non-POD-struct,
non-POD-union (or array of such types) or reference, and has no
user-defined copy assignment operator and no user-defined destructor. A
POD class is a class that is either a POD-struct or a POD-union. An
aggregate is an array or a class (clause 9) with no user-declared
constructors (12.1), no private or protected non-static data members
(clause 11), no base classes (clause 10), and no virtual functions
(10.3).
- POD㺼/b>
C++᪗얐儼습ʵӯᣍ
ʇᰆՍ輝ʽʽ萬ain Ol'Data㩡ᵄ첳ơ㍊
POD饗POD-struct㩊ǒ븶π࣬˼uӐҔς Ѝ儷Ǿ⌬ʽɔ
ָϲ㉔ᵄָիᢷǐOD顢燐ODjꏣ軲Ҕɏ Ѝ儊헩㩣컲˼C儒퓃㬍
⢇҃듐Ӄ맗Զ蒥兒賒唋ˣ繡쒲uӐӃ맗Զ蒥載湹ꯊ
ˆ廣쐏Djꏣ萏D-union㩊ǒ븶ρ꺏㬠
˼uӐҔς Ѝ儷Ǿ⌬ʽɔ
ָϲ㉔ᵄָիᢷǐOD顢燐ODjꏣ軲Ҕɏ Ѝ儊헩㩣컲˼C儒퓃㬍
⢇҃듐Ӄ맗Զ蒥兒賒唋ˣ繡쒲uӐӃ맗Զ蒥載湹ꯊ
POD 㨐OD class㩊ǒ븶 㬋쒪oʇPOD養ҪoʇPODjꏡ㠍
ϣ衧gregate㩊ǒ븶ʽש㬻Ⓕ趀̵ࣨ﮹㩣썊 脹uӐӃ맗Զ蒥儹錟ꯊ12.1㩣썊 uӐ˽Ӑ벱㻤儷Ǿ⌬ʽɔᣨ̵ﮱ1㩣썊 uӐ빀̵ࣨﮱ0㩣쒲uӐꯊ10.3㩡㍊
- ODR: The "One Definition
Rule", which says that any entity in a C++ program must have the same definition in all translation units (object files) which make up a program.
- ODR㺼/b>
ᰒ븶樒幦Բ㨔he One Definition Rule㩡ᣬ
˼ʇ˵㬃++㌐▐儈κΊ笲㬍
Ԛש㉳̐ⵄ˹Ӑ儷풫奔꣨Ŀļ㬍
ᘐ뾟ӐϠͬ攜蒥ᣍ
Revised
13 November, 2002
© Copyright Dave Abrahams 2002.
筒룺켯a>
ҫ΄輐o 2008.5.25