![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
LookIn
这个作者很懒,什么都没留下…
展开
-
C++~~~std::sort
template void sort( RandomAccessIterator first, RandomAccessIterator last ); template void sort( RandomAccessIte转载 2011-07-29 02:00:44 · 1377 阅读 · 0 评论 -
【点滴记录】free函数的作用
今天看一段程序,C真是少用。如下,是双向链表的清空操作: void bilistClear(Node *bl){ if(bl->data!=NULL){ free((char*)bl->data); bl->data=NULL; } if(bl->pre!=NULL) bl->pre->next=NULL; bl->pre=NULL; if(bl->next==NULL原创 2011-12-01 15:19:12 · 1455 阅读 · 0 评论 -
【点滴记录】iterator_traits<Iterator>用法
MSDN上看到的原型: template struct iterator_traits { typedef typename Iterator::iterator_category iterator_category; typedef typename Iterator::value_type value_type; typedef typename Iterator::原创 2011-12-01 19:56:14 · 3437 阅读 · 0 评论