string to wstring conversion c++

C++: Convert string to wstring

#include <iostream>
#include <locale>
#include <codecvt>
#include <string>

int main() {
    std::string narrowStr = "Hello, World!";
    std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
    std::wstring wideStr = converter.from_bytes(narrowStr);
    std::wcout << wideStr << std::endl;
    return 0;
}