1.3.3 - [Defns. Dynamic.Type] - [Definition. Dynamic. Type]

xiaoxiao2021-03-06  104

Please don't reprint this article; please don't re-publish in any form; please delete it within 24 hours of downloading this article; it is forbidden to use this article for commercial purposes.

1 General [Intro] 1.3 Definitions [Intro.defs] 1.3.3 Dynamic Type [Defns.Dynamic.Type] 1 review [Introduction] 1.3 Definition [Introduction] 1.3.3 Dynamic Type [Definition. Dynamic. Type] The Type Of which the Lvalue Denoted by An Lvalue Expression Refers. [EXAMPLE: IF A POINTER (8.3.1) P whose static type is Pointing to An Object of Class D, Derived from b (Clause 10), The Dynamic Type of the Expression * P IS "D." References (8.3.2) Are Treated Similarly.] The Dynamic Type of An Rvalue Expression is its static type. By a left value expression The final derived object (1.8) specified by the left value is pointed out. [Example: If a pointer (8.3.1) P in a static type "class B" Points an object that is derived from the class D of B (Article 10), the dynamic type of expression * p is "D ". The reference (8.3.2) is processed according to similar rules. 】 The dynamic type of a right value expression is its static type. Prev [Defns.Diagnostic] | Next [defns.ill.formed] Previous [Definition. Diagnostics] | Next page [Definition. Nothing. Form]

转载请注明原文地址:https://www.9cbs.com/read-99412.html

New Post(0)