什么意思*& [英] what's the meaning of *&

查看:108
本文介绍了什么意思*&的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个java编码器,不熟悉c ++语言。
现在,我读了以下代码:

I am a java coder and not familar with the c++ language. But right now,i read the following code:

void method(A* a,A*& b);

A *a;
A *b;
method(a,b);

我的问题是:
*&意味着它代表b本身的值?
thx

And my question is: what's the meaning of "*&"?Does it means that it represent the value of b itself? thx

推荐答案

b

因此,如果方法 c $ c> b ,则调用范围内的 b 将被更改。

So if method sets b, the b in scope of the call will be changed.

这篇关于什么意思*&的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆