I have a WCHAR array (say WCHAR *wszName). I want to convert it to wstring. So, I do the following:-
wstring wstrName(wszName);
It works. But I want to know what internally happens when the conversion takes place. For example, does it allocate some new buffer? While debugging an application, I looked into the code of the conversion, but could not understand it. Could you please post the code of conversion and explain it to me?
Thanks.