Possible Duplicate:
Difference between pointer to a reference and reference to a pointer
Hi,
I could not understand get(Event*& pEvent)
... Is it passing the address of the object pEvent to the reference of pEvent
..(Event*& pEvent)
...The reference will exist as a local scope within the function isnt it....
void classA::func()
{
Event* pEvent = NULL;
if ( get((pEvent) )
{
......//definition;
}
}
bool ClassA::get(Event*& pEvent)
{
...//definition;
}