stl_list.h (_M_resize_pos(size_type&)): Declare.
authorJonathan Wakely <jwakely@redhat.com>
Tue, 19 May 2015 22:24:50 +0000 (23:24 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 19 May 2015 22:24:50 +0000 (23:24 +0100)
commit8e72571637a1f148628617d7eaa3b45809af247d
tree8cb0574eb9d23b26434446f7842b4712e5539ded
parent4d6eb35a6dbe6c9808779ca446667f8a8374a11b
stl_list.h (_M_resize_pos(size_type&)): Declare.

* include/bits/stl_list.h (_M_resize_pos(size_type&)): Declare.
(operator==(const list&, const list&)): If size() is O(1) compare
sizes before comparing each element.
* include/bits/list.tcc (list::_M_resize_pos(size_type&)): Define.
(list::resize): Use _M_resize_pos.

From-SVN: r223416
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/list.tcc
libstdc++-v3/include/bits/stl_list.h