At the beginning of the page: https://learn.microsoft.com/en-us/cpp/mfc/reference/cstringlist-class?view=msvc-170
one can see the following line:
CObject*& CObList::GetHead() const;
Can you explain me what it is?
It looks like a function declaration.
Yet in a class.hfile, we wouldn't prefix the function name with the class nameCObList::Also, is
CObject*&a function return type?
I am familiar with parameters passed as references using a & like for example:
void CMyClass::FindCountry(CString & szCountry)
{
[...]
}
- What does the
constkeyword mean in that context?
Thanks.