Like any C++ object, you get the address of an object with &. A reference itself doesn't have an address, but you can still use & to get the address of the object refered to.
"value" is a bit more complex. What's the value of an iLaunchRocket* interface? Many interfaces offer only functions and do not have (publicly visible) data. In such cases, the notion of a "value" is tricky.
发布评论
评论(1)
与任何 C++ 对象一样,您可以使用
&
获取对象的地址。引用本身没有地址,但您仍然可以使用&
来获取所引用对象的地址。“价值”有点复杂。
iLaunchRocket*
接口的价值是什么?许多接口只提供功能,没有(公开可见的)数据。在这种情况下,“值”的概念很棘手。Like any C++ object, you get the address of an object with
&
. A reference itself doesn't have an address, but you can still use&
to get the address of the object refered to."value" is a bit more complex. What's the value of an
iLaunchRocket*
interface? Many interfaces offer only functions and do not have (publicly visible) data. In such cases, the notion of a "value" is tricky.