std::string中 size() 和 length() 函数
size()源代码如下: /// Capacity: /// Returns the number of characters in the string, not including any /// null-termination. size_type size() const _GLIBCXX_NOEXCEPT { return _M_string_length; }length()源代码如下: /// Returns the number of charac
原创
2021-10-12 19:08:58 ·
1136 阅读 ·
0 评论