Possible Duplicate:
what’s the meaning of *&
- what
* &pSth
mean? - is this a
pointer
or aref
? - Why/When we need that?
--code--
ClassName::GetSth(TypeName* &pSth)
{
//some code
}
Possible Duplicate:
what’s the meaning of *&
* &pSth
mean? pointer
or a ref
?--code--
ClassName::GetSth(TypeName* &pSth)
{
//some code
}
TypeName* &pSth
is a reference to TypeName
pointer.
Equivalent syntax in C is TypeName** pSth