I have seen the following #include directives:
#include <xstring>
#include <cstring>
#include <string>
#include <wstring>
What are the differences among these include directives? Did I miss any others that should be considered part of this group?
<string>is wherestd::stringis defined.<xstring>is a Microsoft C++ header containing the actual implementation of thestd::basic_stringtemplate. You never need to include<xstring>yourself.<string>includes it for thebasic_stringimplementation.<cstring>is the standard C string library (strcpy,strcat, etc) placed into the C++stdnamespace.wstringis not a header file that I’m aware of.std::wstringis thewchar_tversion ofstd::stringand is defined when including<string>.