-
- Downloads
[multiple changes]
2004-01-07 Gawain Bolton <gp.bolton@computer.org> * include/bits/stl_list.h: * include/bits/list.tc: * src/list.cc: Performance enhancements for destructor, push_front(), push_back(), pop_front(), pop_back(), sort() Eliminated static_casts where possible. Moved code out of header files into new src/list.cc implementation file for library where possible. Remove inheritance from iterator class and create separate classes for non-constant and constant iterators. * include/bits/stl_tree.h (_Rb_tree class): * src/tree.cc: Only erase contents in destructor. Eliminate unnecessary initialization in assignment operator. Optimize for the nominal case by not checking whether container is empty in clear(). Re-order test in _M_insert() to improve performance. Move initialization of new node's left & right pointers to src/tree.cc to where new node's colour is initialized and to reduce the amount of inline code. Use _M_leftmost() and _M_end() to improve readability where appropriate. Create separate classes for non-constant and constant iterators to clarify code, avoid extra template parameters and casting away constness. 2004-01-07 Benjamin Kosnik <bkoz@redhat.com> * src/Makefile.am (sources): Add list.cc, tree.cc. * src/stl_tree.cc: Move to... * src/tree.cc: ...here. * src/list.cc: Add. * config/linker-map.gnu: Tweaks. * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors. * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors. * bits/stl_vector.h: Column wrap comments. From-SVN: r75515
Showing
- libstdc++-v3/ChangeLog 40 additions, 0 deletionslibstdc++-v3/ChangeLog
- libstdc++-v3/config/linker-map.gnu 3 additions, 1 deletionlibstdc++-v3/config/linker-map.gnu
- libstdc++-v3/include/bits/list.tcc 45 additions, 96 deletionslibstdc++-v3/include/bits/list.tcc
- libstdc++-v3/include/bits/stl_list.h 180 additions, 103 deletionslibstdc++-v3/include/bits/stl_list.h
- libstdc++-v3/include/bits/stl_tree.h 133 additions, 107 deletionslibstdc++-v3/include/bits/stl_tree.h
- libstdc++-v3/include/bits/stl_vector.h 48 additions, 37 deletionslibstdc++-v3/include/bits/stl_vector.h
- libstdc++-v3/src/Makefile.am 2 additions, 1 deletionlibstdc++-v3/src/Makefile.am
- libstdc++-v3/src/Makefile.in 9 additions, 8 deletionslibstdc++-v3/src/Makefile.in
- libstdc++-v3/src/list.cc 141 additions, 0 deletionslibstdc++-v3/src/list.cc
- libstdc++-v3/src/tree.cc 46 additions, 1 deletionlibstdc++-v3/src/tree.cc
- libstdc++-v3/testsuite/23_containers/map/operators/1_neg.cc 5 additions, 9 deletionslibstdc++-v3/testsuite/23_containers/map/operators/1_neg.cc
- libstdc++-v3/testsuite/23_containers/set/operators/1_neg.cc 7 additions, 7 deletionslibstdc++-v3/testsuite/23_containers/set/operators/1_neg.cc
Loading
Please register or sign in to comment