I have found on the cpp reference website (link) the following code which I do not understend completely:
void try_widen(const std::ctype<wchar_t>& f, char c)
{
wchar_t w = f.widen(c);
std::cout << "The single-byte character " << +(unsigned char)c
<< " widens to " << +w << '\n';
}
What I do not understand is what does plus sign "+" makes before w variable (+w
) and before (unsigned char)c
(+(unsigned char)c
). Can somebody explain me this?