<tfoot id='g0raw'></tfoot>
  • <legend id='g0raw'><style id='g0raw'><dir id='g0raw'><q id='g0raw'></q></dir></style></legend>

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

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

          <bdo id='g0raw'></bdo><ul id='g0raw'></ul>

        有没有办法找到引用的地址?

        Is there any way to find the address of a reference?(有没有办法找到引用的地址?)
        1. <legend id='t5Tel'><style id='t5Tel'><dir id='t5Tel'><q id='t5Tel'></q></dir></style></legend>
        2. <i id='t5Tel'><tr id='t5Tel'><dt id='t5Tel'><q id='t5Tel'><span id='t5Tel'><b id='t5Tel'><form id='t5Tel'><ins id='t5Tel'></ins><ul id='t5Tel'></ul><sub id='t5Tel'></sub></form><legend id='t5Tel'></legend><bdo id='t5Tel'><pre id='t5Tel'><center id='t5Tel'></center></pre></bdo></b><th id='t5Tel'></th></span></q></dt></tr></i><div id='t5Tel'><tfoot id='t5Tel'></tfoot><dl id='t5Tel'><fieldset id='t5Tel'></fieldset></dl></div>

          • <small id='t5Tel'></small><noframes id='t5Tel'>

              <bdo id='t5Tel'></bdo><ul id='t5Tel'></ul>
                <tbody id='t5Tel'></tbody>

                  <tfoot id='t5Tel'></tfoot>

                1. 本文介绍了有没有办法找到引用的地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有没有办法找到引用的地址?

                  Is there any way to find the address of a reference?

                  使其更具体:变量本身的地址,而不是初始化它的变量的地址.

                  Making it more specific: The address of the variable itself and not the address of the variable it is initialized with.

                  推荐答案

                  参考文献没有自己的地址.虽然引用可以实现为指针,但没有必要或保证这一点.

                  References don't have their own addresses. Although references may be implemented as pointers, there is no need or guarantee of this.

                  C++ FAQ 说得最好:

                  与指针不同,一旦引用被绑定到一个对象,它不能重置"到另一个对象.这引用本身不是一个对象(它没有身份;取地址一个参考给你的地址指称者;记住:参考是它的参照物).

                  Unlike a pointer, once a reference is bound to an object, it can not be "reseated" to another object. The reference itself isn't an object (it has no identity; taking the address of a reference gives you the address of the referent; remember: the reference is its referent).

                  另请在此处查看我的回答以获取综合列表引用与指针有何不同.

                  Please also see my answer here for a comprehensive list of how references differ from pointers.

                  引用是其所指

                  这篇关于有没有办法找到引用的地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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++ 引用发生变化)
                  • <bdo id='zwoaa'></bdo><ul id='zwoaa'></ul>

                      <tfoot id='zwoaa'></tfoot>

                        1. <legend id='zwoaa'><style id='zwoaa'><dir id='zwoaa'><q id='zwoaa'></q></dir></style></legend>

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

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