13.3 Standard conversions

王朝other·作者佚名  2006-01-10
窄屏简体版  字體: |||超大  

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]

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航