]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Compare keys and values separately in flat_map::operator==
authorPatrick Palka <ppalka@redhat.com>
Thu, 29 May 2025 14:12:23 +0000 (10:12 -0400)
committerPatrick Palka <ppalka@redhat.com>
Sun, 1 Jun 2025 14:41:20 +0000 (10:41 -0400)
commit771fcb9fe9b3fce8336a797c03c399a63e11eb21
tree1a68a8164a6a9fae5c5c23abe3a11f43c8099851
parent48d6f5dbb0e412266ebb77def04ed378ca856029
libstdc++: Compare keys and values separately in flat_map::operator==

Instead of effectively doing a zipped comparison of the keys and values,
compare them separately to leverage the underlying containers' optimized
equality implementations.

libstdc++-v3/ChangeLog:

* include/std/flat_map (_Flat_map_impl::operator==): Compare
keys and values separately.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
(cherry picked from commit ad96f0344adfc847874b34b43f30371979ae9963)
libstdc++-v3/include/std/flat_map