[libcxx-commits] [libcxx] be08890 - [libc++][NFC] Remove unused __key_equiv from flat_multimap and flat_multiset (#175612)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 13 01:37:28 PST 2026
Author: halbi2
Date: 2026-01-13T10:37:24+01:00
New Revision: be0889030e28230268b309ec01fec712f72b507d
URL: https://github.com/llvm/llvm-project/commit/be0889030e28230268b309ec01fec712f72b507d
DIFF: https://github.com/llvm/llvm-project/commit/be0889030e28230268b309ec01fec712f72b507d.diff
LOG: [libc++][NFC] Remove unused __key_equiv from flat_multimap and flat_multiset (#175612)
Added:
Modified:
libcxx/include/__flat_map/flat_multimap.h
libcxx/include/__flat_set/flat_multiset.h
Removed:
################################################################################
diff --git a/libcxx/include/__flat_map/flat_multimap.h b/libcxx/include/__flat_map/flat_multimap.h
index 72e3b5f21670c..bd3ec81b98b7f 100644
--- a/libcxx/include/__flat_map/flat_multimap.h
+++ b/libcxx/include/__flat_map/flat_multimap.h
@@ -934,15 +934,6 @@ class flat_multimap {
containers __containers_;
_LIBCPP_NO_UNIQUE_ADDRESS key_compare __compare_;
-
- struct __key_equiv {
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 __key_equiv(key_compare __c) : __comp_(__c) {}
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool
- operator()(const_reference __x, const_reference __y) const {
- return !__comp_(std::get<0>(__x), std::get<0>(__y)) && !__comp_(std::get<0>(__y), std::get<0>(__x));
- }
- key_compare __comp_;
- };
};
template <class _KeyContainer, class _MappedContainer, class _Compare = less<typename _KeyContainer::value_type>>
diff --git a/libcxx/include/__flat_set/flat_multiset.h b/libcxx/include/__flat_set/flat_multiset.h
index b2de63bc3038c..4324645fb8445 100644
--- a/libcxx/include/__flat_set/flat_multiset.h
+++ b/libcxx/include/__flat_set/flat_multiset.h
@@ -745,15 +745,6 @@ class flat_multiset {
_KeyContainer __keys_;
_LIBCPP_NO_UNIQUE_ADDRESS key_compare __compare_;
-
- struct __key_equiv {
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 __key_equiv(key_compare __c) : __comp_(__c) {}
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool
- operator()(const_reference __x, const_reference __y) const {
- return !__comp_(std::get<0>(__x), std::get<0>(__y)) && !__comp_(std::get<0>(__y), std::get<0>(__x));
- }
- key_compare __comp_;
- };
};
template <class _KeyContainer, class _Compare = less<typename _KeyContainer::value_type>>
More information about the libcxx-commits
mailing list