While reading the responses to this topic, I discovered that although I always used size(), there is a function for std::string called length().
Is there a reason this function exists in the std::string class?
According to what I've read in MSDN and CppReference, there is no distinction between size() and length ().
If that's the case, doesn't it only make things more complicated for class users?