<tfoot id='Ra0W8'></tfoot>

    <small id='Ra0W8'></small><noframes id='Ra0W8'>

    <legend id='Ra0W8'><style id='Ra0W8'><dir id='Ra0W8'><q id='Ra0W8'></q></dir></style></legend>

        <i id='Ra0W8'><tr id='Ra0W8'><dt id='Ra0W8'><q id='Ra0W8'><span id='Ra0W8'><b id='Ra0W8'><form id='Ra0W8'><ins id='Ra0W8'></ins><ul id='Ra0W8'></ul><sub id='Ra0W8'></sub></form><legend id='Ra0W8'></legend><bdo id='Ra0W8'><pre id='Ra0W8'><center id='Ra0W8'></center></pre></bdo></b><th id='Ra0W8'></th></span></q></dt></tr></i><div id='Ra0W8'><tfoot id='Ra0W8'></tfoot><dl id='Ra0W8'><fieldset id='Ra0W8'></fieldset></dl></div>
          <bdo id='Ra0W8'></bdo><ul id='Ra0W8'></ul>

        为什么在 C++11 的开发过程中变量的定义发生了变化?

        Why was the definition of a variable changed during the development of C++11?(为什么在 C++11 的开发过程中变量的定义发生了变化?)
          <legend id='numJW'><style id='numJW'><dir id='numJW'><q id='numJW'></q></dir></style></legend>

            <small id='numJW'></small><noframes id='numJW'>

                  <tbody id='numJW'></tbody>

                • <bdo id='numJW'></bdo><ul id='numJW'></ul>

                • <tfoot id='numJW'></tfoot>
                • <i id='numJW'><tr id='numJW'><dt id='numJW'><q id='numJW'><span id='numJW'><b id='numJW'><form id='numJW'><ins id='numJW'></ins><ul id='numJW'></ul><sub id='numJW'></sub></form><legend id='numJW'></legend><bdo id='numJW'><pre id='numJW'><center id='numJW'></center></pre></bdo></b><th id='numJW'></th></span></q></dt></tr></i><div id='numJW'><tfoot id='numJW'></tfoot><dl id='numJW'><fieldset id='numJW'></fieldset></dl></div>
                  本文介绍了为什么在 C++11 的开发过程中变量的定义发生了变化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  n3035 说:

                  一个变量是由一个对象的声明引入的.变量的名称表示对象.

                  A variable is introduced by the declaration of an object. The variable's name denotes the object.

                  n3090 说:

                  变量由非静态数据成员或对象的引用声明引入..变量的名称表示引用或对象.

                  A variable is introduced by the declaration of a reference other than a non-static data member or of an object. The variable's name denotes the reference or object.

                  我想知道是什么促使了这种变化.是否与右值引用有关?

                  I wonder what motivated this change. Does it have to do with rvalue references?

                  推荐答案

                  这一变化是为了响应 CWG 缺陷 633.与此相关的更改列表可以在 中找到n2993:

                  The change was in response to CWG defect 633. The list of changes related to this can be found in n2993:

                  这些更改的目标是扩展变量"的含义以涵盖命名对象和引用,并在可行的情况下始终如一地应用该术语.

                  The goal of these changes is to expand the meaning of "variable" to encompass both named objects and references, and to apply the term consistently wherever feasible.

                  这篇关于为什么在 C++11 的开发过程中变量的定义发生了变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  C++ stl unordered_map implementation, reference validity(C++ stl unordered_map 实现,参考有效性)
                  C++: Is it possible to use a reference as the value in a map?(C++:是否可以使用引用作为映射中的值?)
                  Where ampersand quot;amp;quot; can be put when passing argument by reference?(其中符号“amp;通过引用传递参数时可以放置吗?)
                  Why can a non-const reference parameter be bound to a temporary object?(为什么可以将非常量引用参数绑定到临时对象?)
                  What is a dangling reference?(什么是悬空引用?)
                  C++ reference changes when push_back new element to std::vector(当 push_back 新元素到 std::vector 时,C++ 引用发生变化)
                      <legend id='sMu7U'><style id='sMu7U'><dir id='sMu7U'><q id='sMu7U'></q></dir></style></legend>
                      <tfoot id='sMu7U'></tfoot>
                        <bdo id='sMu7U'></bdo><ul id='sMu7U'></ul>

                        <small id='sMu7U'></small><noframes id='sMu7U'>

                      • <i id='sMu7U'><tr id='sMu7U'><dt id='sMu7U'><q id='sMu7U'><span id='sMu7U'><b id='sMu7U'><form id='sMu7U'><ins id='sMu7U'></ins><ul id='sMu7U'></ul><sub id='sMu7U'></sub></form><legend id='sMu7U'></legend><bdo id='sMu7U'><pre id='sMu7U'><center id='sMu7U'></center></pre></bdo></b><th id='sMu7U'></th></span></q></dt></tr></i><div id='sMu7U'><tfoot id='sMu7U'></tfoot><dl id='sMu7U'><fieldset id='sMu7U'></fieldset></dl></div>

                            <tbody id='sMu7U'></tbody>