Monday, 19 September 2016

c++ - std::wstring VS std::string

I am not able to understand the differences between std::string and std::wstring. I know wstring supports wide characters such as Unicode characters. I have got the following questions:




  1. When should I use std::wstring over std::string?

  2. Can std::string hold the entire ASCII character set, including the special characters?


  3. Is std::wstring supported by all popular C++ compilers?

  4. What is exactly a "wide character"?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...