title: Why do i need both std and string library to use strings in c++
body: <p>I know that <code>string</code> type exists in <code>namespace std</code>. I also know there is the <code>&lt;string&gt;</code> library which needs to be included in order to use the <code>string</code> type. My question is: why do i need both (to include the library and use the std namespace) to define a string? Why cant i just use it by including the library? More generally, what does the <code>namespace std</code> contains that is missing from the library?</p>