title: std::string::length() vs. std::string::size()
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/905479/stdstring-length-and-size-member-functions">std::string length() and size() member functions</a>  </p>
  </blockquote>
  
  
  
  <p>I always retrieved the length of an <code>std::string</code> via the<code>size()</code> member function. To be honest I never knew there was a <code>length()</code> member function too. Well, I've just learnt there is. So I am wondering if there's any difference between the two, and in the likely event of a negative answer,  why would there be two member functions that do exactly the same?</p>