stl_list.h (_List_base<>::_M_get_Node_allocator): Add.
authorPaolo Carlini <pcarlini@suse.de>
Tue, 3 Jan 2006 13:19:23 +0000 (13:19 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 3 Jan 2006 13:19:23 +0000 (13:19 +0000)
commit31905f34981000880dd1e24709eb1fe4ec0cc4b4
treeb25500a53dc212597d68b7b184276b59752bd888
parent1387fef3fbf29d527e8ca1956a2eaf1de137a377
stl_list.h (_List_base<>::_M_get_Node_allocator): Add.

2006-01-03  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_list.h (_List_base<>::_M_get_Node_allocator): Add.
(_M_get_Tp_allocator, get_allocator): Tidy.
(list<>::list(const list&), insert(iterator, size_type, const
value_type&), insert(iterator, _InputIterator, _InputIterator)):
Use _M_get_Node_allocator.
* include/bits/stl_tree.h (_Rb_tree<>::_M_get_Node_allocator()): Add.
(_Rb_tree(const _Rb_tree<>&): Use it.
* include/bits/stl_deque.h (_Deque_base<>::_M_get_map_allocator,
get_allocator): Tidy.
* include/bits/stl_vector.h (_Vector_base<>::get_allocator): Tidy.
* testsuite/23_containers/map/operators/1_neg.cc: Adjust dg-error
line numbers.
* testsuite/23_containers/set/operators/1_neg.cc: Likewise.

* testsuite/testsuite_allocator.h (uneq_allocator<>::swap): Fix.

* testsuite/testsuite_allocator.h (class uneq_allocator): A simple
non-empty testing allocator which can be endowed of a "personality"
at construction time.

From-SVN: r109280
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_deque.h
libstdc++-v3/include/bits/stl_list.h
libstdc++-v3/include/bits/stl_tree.h
libstdc++-v3/include/bits/stl_vector.h
libstdc++-v3/testsuite/23_containers/map/operators/1_neg.cc
libstdc++-v3/testsuite/23_containers/set/operators/1_neg.cc
libstdc++-v3/testsuite/testsuite_allocator.h