Make associative container operators inline friend
Jonathan Wakely
jwakely@redhat.com
Thu Oct 4 11:28:00 GMT 2018
On 04/10/18 07:37 +0200, François Dumont wrote:
>Here is the cleanup version.
>
>Â Â Â * include/bits/stl_tree.h
>Â Â Â (_Rb_tree_iterator<>::operator==): Make inline friend.
>Â Â Â (_Rb_tree_iterator<>::operator!=): Likewise.
>Â Â Â (_Rb_tree_const_iterator<>::operator==): Likewise.
>Â Â Â (_Rb_tree_const_iterator<>::operator!=): Likewise.
>Â Â Â (operator==(const _Rb_tree_iterator<>&,
>Â Â Â const _Rb_tree_const_iterator&)): Remove.
>Â Â Â (operator!=(const _Rb_tree_iterator<>&,
>Â Â Â const _Rb_tree_const_iterator&)): Remove.
>Â Â Â (operator==(const _Rb_tree<>&, const _Rb_tree<>&)): Make inline friend.
>Â Â Â (operator<(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise.
>Â Â Â (operator!=(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise and
>deprecate.
Nice.
>Â Â Â (operator>(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise.
>Â Â Â (operator<=(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise.
>Â Â Â (operator>=(const _Rb_tree<>&, const _Rb_tree<>&)): Likewise.
>Â Â Â * include/debug/map.h (map<>::erase(const_iterator, const_iterator)):
>Â Â Â Compare __victim with _Base::cend().
>Â Â Â * include/debug/multimap.h (multimap<>::erase(const_iterator,
>const_iterator)):
>Â Â Â Likewise.
>Â Â Â * include/debug/set.h (set<>::erase(const_iterator, const_iterator)):
>Â Â Â Compare __victim with _Base::cend().
>Â Â Â * include/debug/multiset.h (multiset<>::erase(const_iterator,
>const_iterator)):
>Â Â Â Likewise.
>
>Tested under Linux x86_64.
>
>Ok to commit ?
Yes, thanks very much.
More information about the Libstdc++
mailing list