Sounds like a problem for the STL committee to handle lol
They did, it is std::basic_string<wchar_t>
aka std::wstring
.
But I have no experience with that and IDK, if they implemented an overload for std::reverse…
Or the solution @jules mentioned above, convert to std::basic_string<char32_t>
, which is as stated above less efficient, but maybe shorter to write…
But it is getting repetitive now