The length is an important property of a string and should be available as a getter. The new size() method is consistent with std::string. ChangeLog: [C++] Added `SharedString::size()`