aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-09-16 11:39:41 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-09-16 15:54:41 +0100
commit15943285867a6952dbc5a603c434e61bfe32296f (patch)
tree1cc434375b33f7be03de34f78c421a03506e10e2 /gcc/cp/constexpr.cc
parent64f9580423eef22b81a7e90be851c81dc6e04778 (diff)
downloadgcc-15943285867a6952dbc5a603c434e61bfe32296f.zip
gcc-15943285867a6952dbc5a603c434e61bfe32296f.tar.gz
gcc-15943285867a6952dbc5a603c434e61bfe32296f.tar.bz2
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.
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions