Hello all!
I am working through a book here and it says that there is a class-template "basic_string" that is used in the namespace std as typedef basic_string<char> string;
to create an alias for the "string" type.
However, I know that there is a header file <string>
for the declaration of the string class... so what's the difference between the two?
And when should I rely on namespace std to define string
as an alias vs importing the <string>
file?
Thanks to all in advance!