Possible Duplicate:
what’s the meaning of *&
- what
* &pSthmean? - is this a
pointeror 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