0

Possible Duplicate:
what’s the meaning of *&

  1. what * &pSth mean?
  2. is this a pointer or a ref?
  3. Why/When we need that?

--code--

ClassName::GetSth(TypeName* &pSth)
{
    //some code
}
Community
  • 1
  • 1
Scott 混合理论
  • 2,263
  • 8
  • 34
  • 59

2 Answers2

3

It means "reference to pointer to Typename".

juanchopanza
  • 223,364
  • 34
  • 402
  • 480
1

TypeName* &pSth is a reference to TypeName pointer.

Equivalent syntax in C is TypeName** pSth

billz
  • 44,644
  • 9
  • 83
  • 100