libstdc++: Remove __alloc_neq helper
authorJonathan Wakely <jwakely@redhat.com>
Fri, 16 Sep 2022 10:39:41 +0000 (11:39 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 16 Sep 2022 14:54:41 +0000 (15:54 +0100)
commit15943285867a6952dbc5a603c434e61bfe32296f
tree1cc434375b33f7be03de34f78c421a03506e10e2
parent64f9580423eef22b81a7e90be851c81dc6e04778
libstdc++: Remove __alloc_neq helper

This class template and partial specialization were added 15 years ago
to optimize allocator equality comparisons in std::list. I think it's
safe to assume that GCC is now capable of optimizing an inline
operator!= that just returns false at least as well as an inline member
function that just returns false.

libstdc++-v3/ChangeLog:

* include/bits/allocator.h (__alloc_neq): Remove.
* include/bits/stl_list.h (list::_M_check_equal_allocators):
Compare allocators directly, without __alloc_neq.
libstdc++-v3/include/bits/allocator.h
libstdc++-v3/include/bits/stl_list.h