d2cc7f9266
2005-12-17 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_vector.h (vector(const vector&)): Use _M_get_Tp_allocator. * include/bits/stl_deque.h (deque(const deque&)): Likewise. (_M_destroy_data): Adjust. 2005-12-17 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_deque.h (deque<>::_M_erase_at_end, _M_erase_at_begin, _M_destroy_data, _M_destroy_data_dispatch, _M_destroy_data_aux): New, optimize erase at begin() / end() and consistently use the "segmented iterator" optimization. (deque<>::~deque(), resize, clear, _M_assign_aux, _M_fill_assign): Use the above. * include/bits/deque.tcc (deque<>::operator=, _M_assign_aux): Same. (erase(iterator, iterator)): Likewise, clean-up. (erase(iterator)): Tweak, don't call copy unnecessarily. (_M_destroy_data_aux): Define. * testsuite/23_containers/deque/modifiers/erase/1.cc: New. * testsuite/23_containers/deque/modifiers/erase/2.cc: Likewise. From-SVN: r108727 |
||
---|---|---|
.. | ||
bitset | ||
deque | ||
list | ||
map | ||
multimap | ||
multiset | ||
priority_queue/members | ||
queue/members | ||
set | ||
stack/members | ||
vector |