摘要: 标准STL容器List(Linux GNU,sgi的实现),其size()函数的要遍历所有list中的元素来获得链表长度,来看看它的实现: 1 size_type size() const { 2 size_type __result = 0; 3 distance(begin(), end(), 阅读全文
posted @ 2020-09-02 21:42 阿玛尼迪迪 阅读(1763) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示