The standard conversions are those pre-defined conversions that can occur as
part of a user-defined
conversion.
13.3.1 Standard implicit conversions
The following implicit conversions are classified as standard implicit
conversions:
?Identity conversions (?3.1.1)
?Implicit numeric conversions (?3.1.2)
?Implicit reference conversions (?3.1.4)
?Boxing conversions (?3.1.5)
?Implicit constant expression conversions (?3.1.6)
The standard implicit conversions specifically exclude user-defined
implicit conversions.
13.3.2 Standard explicit conversions
The standard explicit conversions are all standard implicit conversions
plus the subset of the explicit
conversions for which an opposite standard implicit conversion exists.
[Note: In other words, if a standard
implicit conversion exists from a type A to a type B, then a standard
explicit conversion exists from type A to
type B and from type B to type A. end note]
part of a user-defined
conversion.
13.3.1 Standard implicit conversions
The following implicit conversions are classified as standard implicit
conversions:
?Identity conversions (?3.1.1)
?Implicit numeric conversions (?3.1.2)
?Implicit reference conversions (?3.1.4)
?Boxing conversions (?3.1.5)
?Implicit constant expression conversions (?3.1.6)
The standard implicit conversions specifically exclude user-defined
implicit conversions.
13.3.2 Standard explicit conversions
The standard explicit conversions are all standard implicit conversions
plus the subset of the explicit
conversions for which an opposite standard implicit conversion exists.
[Note: In other words, if a standard
implicit conversion exists from a type A to a type B, then a standard
explicit conversion exists from type A to
type B and from type B to type A. end note]
博客介绍了标准转换,其作为用户定义转换的一部分。详细说明了标准隐式转换,包括身份转换、隐式数值转换等,且排除用户定义隐式转换;还阐述了标准显式转换,它是标准隐式转换加上存在相反标准隐式转换的显式转换子集。
1269

被折叠的 条评论
为什么被折叠?



