]> git.ipfire.org Git - thirdparty/gcc.git/commit
stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr instead of downcasting.
authorJonathan Wakely <jwakely@redhat.com>
Wed, 27 May 2015 11:18:44 +0000 (12:18 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 27 May 2015 11:18:44 +0000 (12:18 +0100)
commit151fbaac5c78c4e9b749fc9e916f78b0ba63b153
tree21ba4553e597d873f4bd7a0cf0bb337147febc99
parent2097b5b029851d531a1424a0092992d4c9f650e4
stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr instead of downcasting.

* include/bits/stl_tree.h (_Rb_tree::_M_end()): Return _Base_ptr
instead of downcasting.
(_Rb_tree::_M_copy): Change second parameter to _Base_ptr.
(_Rb_tree::_M_lower_bound, _Rb_tree:_M_upper_bound): Likewise.
(_Rb_tree::_S_iter): Remove.
(_Rb_tree::_S_lower_bound_tr, _Rb_tree::_S_upper_bound_tr): Remove.
(_Rb_tree::_M_find_tr(const _Kt&) const): Call _M_lower_bound_tr
instead of _S_lower_bound_tr
(_Rb_tree::_M_find_tr(const _Kt&)): Call const overload.
(_Rb_tree::_M_lower_bound_tr(const _Kt&) const): Do the search here
instead of calling _S_lower_bound_tr.
(_Rb_tree::_M_lower_bound_tr(const _Kt&)): Call const overload.
(_Rb_tree::_M_upper_bound_tr(const _Kt&) const): Do the search here
instead of calling _S_upper_bound_tr.
(_Rb_tree::_M_upper_bound_tr(const _Kt&)): Call const overload.
(_Rb_tree::_M_equal_range_tr(const _Kt&)): Likewise.
(_Rb_tree::equal_range): Use _Base_ptr for end pointer.
(_Rb_tree::_M_get_insert_unique_pos): Likewise.
(_Rb_tree::_M_get_insert_equal_pos): Likewise.
(_Rb_tree::_M_insert_equal_lower_node): Likewise.
(_Rb_tree::_M_insert_unique, _Rb_tree::_M_emplace_unique,
_Rb_tree::_M_emplace_hint_unique): Remove static_cast.

From-SVN: r223746
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_tree.h