STL学习笔记
destructor
这个作者很懒,什么都没留下…
展开
-
容器类总览
1.vector1). random access --- 即得到第i个元素所花的时间为常数,与i无关。2). varying length --- 即长度可变,stl容器的共性,由库管理内存3). amortized constant time insertion and deletions at the end原创 2004-10-12 17:24:00 · 614 阅读 · 0 评论 -
Iterators
Iterators1.Input Iterators必须满足以下条件:1)prefix++ and postfix++2)operator!=3)dereference* and only support read, not support write4) operator ==see in msdntemplate find(....)表明find算法需要Input Iterator。see原创 2004-10-13 17:01:00 · 706 阅读 · 0 评论