Hi guys,
Suppose I have a map
map<CString,__int64> infoMap;
and its filled by a fn
returnType GetInfo()
{
...
...
...
return infoMap;
}
what should be the return type ?
Thanks a lot.
Printable View
Hi guys,
Suppose I have a map
map<CString,__int64> infoMap;
and its filled by a fn
returnType GetInfo()
{
...
...
...
return infoMap;
}
what should be the return type ?
Thanks a lot.
Probably one of the following:
Code:map<CString,__int64>
//
map<CString,__int64> &
//
const map<CString,__int64> &
hard to say without more information.
what more information may I provide you ? Please ask me.
I got it to work, thanks anyway !! the 1st one did the trick... :)
The return value might be Philip recommendations, even CString, __int64 type or any other type that you want to return from your function.
It depends on what are you doing in this function and what you expected to get when you are calling it.