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
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| Makefile.am | Loading commit data... | |
| Makefile.in | Loading commit data... | |
| allocator-inst.cc | Loading commit data... | |
| codecvt.cc | Loading commit data... | |
| complex_io.cc | Loading commit data... | |
| concept-inst.cc | Loading commit data... | |
| ctype.cc | Loading commit data... | |
| debug.cc | Loading commit data... | |
| demangle.cc | Loading commit data... | |
| ext-inst.cc | Loading commit data... | |
| fstream-inst.cc | Loading commit data... | |
| functexcept.cc | Loading commit data... | |
| globals_io.cc | Loading commit data... | |
| globals_locale.cc | Loading commit data... | |
| io-inst.cc | Loading commit data... | |
| ios.cc | Loading commit data... | |
| ios_failure.cc | Loading commit data... | |
| ios_init.cc | Loading commit data... | |
| ios_locale.cc | Loading commit data... | |
| istream-inst.cc | Loading commit data... | |
| limits.cc | Loading commit data... | |
| list.cc | Loading commit data... | |
| locale-inst.cc | Loading commit data... | |
| locale-misc-inst.cc | Loading commit data... | |
| locale.cc | Loading commit data... | |
| locale_facets.cc | Loading commit data... | |
| locale_init.cc | Loading commit data... | |
| localename.cc | Loading commit data... | |
| misc-inst.cc | Loading commit data... | |
| ostream-inst.cc | Loading commit data... | |
| sstream-inst.cc | Loading commit data... | |
| stdexcept.cc | Loading commit data... | |
| streambuf-inst.cc | Loading commit data... | |
| string-inst.cc | Loading commit data... | |
| strstream.cc | Loading commit data... | |
| tree.cc | Loading commit data... | |
| valarray-inst.cc | Loading commit data... | |
| wlocale-inst.cc | Loading commit data... | |
| wstring-inst.cc | Loading commit data... |