]> 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>
Thu, 29 May 2025 14:12:23 +0000 (10:12 -0400)
commitad96f0344adfc847874b34b43f30371979ae9963
treebe733d10fc3d53d67645bcf3af946c9f65bf85d6
parent589b27ec5769410e036df57645ff1eb7c765f692
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>
libstdc++-v3/include/std/flat_map