From a94cdd4536d830aadcadcddf38576c9cc5036393 Mon Sep 17 00:00:00 2001 From: Hui Xie Date: Sat, 18 Jan 2025 11:04:50 +0000 Subject: [PATCH] [libc++] remove unused template parameter from __is_transparent_v --- libcxx/include/__flat_map/flat_map.h | 28 +++++---- libcxx/include/__functional/is_transparent.h | 6 +- libcxx/include/map | 58 +++++++++---------- libcxx/include/set | 60 +++++++++----------- libcxx/include/unordered_map | 36 ++++++------ libcxx/include/unordered_set | 38 ++++++------- 6 files changed, 109 insertions(+), 117 deletions(-) diff --git a/libcxx/include/__flat_map/flat_map.h b/libcxx/include/__flat_map/flat_map.h index ab53b7a285ca4..30668178b5885 100644 --- a/libcxx/include/__flat_map/flat_map.h +++ b/libcxx/include/__flat_map/flat_map.h @@ -131,7 +131,7 @@ class flat_map { _LIBCPP_HIDE_FROM_ABI static constexpr bool __allocator_ctor_constraint = _And, uses_allocator>::value; - _LIBCPP_HIDE_FROM_ABI static constexpr bool __is_compare_transparent = __is_transparent_v<_Compare, _Compare>; + _LIBCPP_HIDE_FROM_ABI static constexpr bool __is_compare_transparent = __is_transparent_v<_Compare>; public: // [flat.map.cons], construct/copy/destroy @@ -1187,22 +1187,20 @@ template >, class _Allocator = allocator, class = __enable_if_t::value && __is_allocator<_Allocator>::value>> -flat_map(from_range_t, _Range&&, _Compare = _Compare(), _Allocator = _Allocator()) - -> flat_map< - __range_key_type<_Range>, - __range_mapped_type<_Range>, - _Compare, - vector<__range_key_type<_Range>, __allocator_traits_rebind_t<_Allocator, __range_key_type<_Range>>>, - vector<__range_mapped_type<_Range>, __allocator_traits_rebind_t<_Allocator, __range_mapped_type<_Range>>>>; +flat_map(from_range_t, _Range&&, _Compare = _Compare(), _Allocator = _Allocator()) -> flat_map< + __range_key_type<_Range>, + __range_mapped_type<_Range>, + _Compare, + vector<__range_key_type<_Range>, __allocator_traits_rebind_t<_Allocator, __range_key_type<_Range>>>, + vector<__range_mapped_type<_Range>, __allocator_traits_rebind_t<_Allocator, __range_mapped_type<_Range>>>>; template ::value>> -flat_map(from_range_t, _Range&&, _Allocator) - -> flat_map< - __range_key_type<_Range>, - __range_mapped_type<_Range>, - less<__range_key_type<_Range>>, - vector<__range_key_type<_Range>, __allocator_traits_rebind_t<_Allocator, __range_key_type<_Range>>>, - vector<__range_mapped_type<_Range>, __allocator_traits_rebind_t<_Allocator, __range_mapped_type<_Range>>>>; +flat_map(from_range_t, _Range&&, _Allocator) -> flat_map< + __range_key_type<_Range>, + __range_mapped_type<_Range>, + less<__range_key_type<_Range>>, + vector<__range_key_type<_Range>, __allocator_traits_rebind_t<_Allocator, __range_key_type<_Range>>>, + vector<__range_mapped_type<_Range>, __allocator_traits_rebind_t<_Allocator, __range_mapped_type<_Range>>>>; template > requires(!__is_allocator<_Compare>::value) diff --git a/libcxx/include/__functional/is_transparent.h b/libcxx/include/__functional/is_transparent.h index b2d62f2e3ead8..ad4ede41a523c 100644 --- a/libcxx/include/__functional/is_transparent.h +++ b/libcxx/include/__functional/is_transparent.h @@ -21,11 +21,11 @@ _LIBCPP_BEGIN_NAMESPACE_STD #if _LIBCPP_STD_VER >= 14 -template +template inline const bool __is_transparent_v = false; -template -inline const bool __is_transparent_v<_Tp, _Up, __void_t > = true; +template +inline const bool __is_transparent_v<_Tp, __void_t > = true; #endif diff --git a/libcxx/include/map b/libcxx/include/map index 76d32ad883d6a..632886b91fc25 100644 --- a/libcxx/include/map +++ b/libcxx/include/map @@ -1371,11 +1371,11 @@ public: _LIBCPP_HIDE_FROM_ABI iterator find(const key_type& __k) { return __tree_.find(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator find(const key_type& __k) const { return __tree_.find(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI iterator find(const _K2& __k) { return __tree_.find(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI const_iterator find(const _K2& __k) const { return __tree_.find(__k); } @@ -1383,7 +1383,7 @@ public: _LIBCPP_HIDE_FROM_ABI size_type count(const key_type& __k) const { return __tree_.__count_unique(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI size_type count(const _K2& __k) const { return __tree_.__count_multi(__k); } @@ -1391,7 +1391,7 @@ public: # if _LIBCPP_STD_VER >= 20 _LIBCPP_HIDE_FROM_ABI bool contains(const key_type& __k) const { return find(__k) != end(); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI bool contains(const _K2& __k) const { return find(__k) != end(); } @@ -1400,12 +1400,12 @@ public: _LIBCPP_HIDE_FROM_ABI iterator lower_bound(const key_type& __k) { return __tree_.lower_bound(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator lower_bound(const key_type& __k) const { return __tree_.lower_bound(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI iterator lower_bound(const _K2& __k) { return __tree_.lower_bound(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI const_iterator lower_bound(const _K2& __k) const { return __tree_.lower_bound(__k); } @@ -1414,11 +1414,11 @@ public: _LIBCPP_HIDE_FROM_ABI iterator upper_bound(const key_type& __k) { return __tree_.upper_bound(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator upper_bound(const key_type& __k) const { return __tree_.upper_bound(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI iterator upper_bound(const _K2& __k) { return __tree_.upper_bound(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI const_iterator upper_bound(const _K2& __k) const { return __tree_.upper_bound(__k); } @@ -1431,11 +1431,11 @@ public: return __tree_.__equal_range_unique(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) { return __tree_.__equal_range_multi(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) const { return __tree_.__equal_range_multi(__k); } @@ -1482,9 +1482,8 @@ template >, class = enable_if_t::value, void>, class = enable_if_t<__is_allocator<_Allocator>::value, void>> -map(initializer_list>, - _Compare = _Compare(), - _Allocator = _Allocator()) -> map, _Tp, _Compare, _Allocator>; +map(initializer_list>, _Compare = _Compare(), _Allocator = _Allocator()) + -> map, _Tp, _Compare, _Allocator>; template ::value, void>> -map(initializer_list>, - _Allocator) -> map, _Tp, less>, _Allocator>; +map(initializer_list>, _Allocator) + -> map, _Tp, less>, _Allocator>; # endif # ifndef _LIBCPP_CXX03_LANG @@ -1964,11 +1963,11 @@ public: _LIBCPP_HIDE_FROM_ABI iterator find(const key_type& __k) { return __tree_.find(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator find(const key_type& __k) const { return __tree_.find(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI iterator find(const _K2& __k) { return __tree_.find(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI const_iterator find(const _K2& __k) const { return __tree_.find(__k); } @@ -1976,7 +1975,7 @@ public: _LIBCPP_HIDE_FROM_ABI size_type count(const key_type& __k) const { return __tree_.__count_multi(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI size_type count(const _K2& __k) const { return __tree_.__count_multi(__k); } @@ -1984,7 +1983,7 @@ public: # if _LIBCPP_STD_VER >= 20 _LIBCPP_HIDE_FROM_ABI bool contains(const key_type& __k) const { return find(__k) != end(); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI bool contains(const _K2& __k) const { return find(__k) != end(); } @@ -1993,12 +1992,12 @@ public: _LIBCPP_HIDE_FROM_ABI iterator lower_bound(const key_type& __k) { return __tree_.lower_bound(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator lower_bound(const key_type& __k) const { return __tree_.lower_bound(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI iterator lower_bound(const _K2& __k) { return __tree_.lower_bound(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI const_iterator lower_bound(const _K2& __k) const { return __tree_.lower_bound(__k); } @@ -2007,11 +2006,11 @@ public: _LIBCPP_HIDE_FROM_ABI iterator upper_bound(const key_type& __k) { return __tree_.upper_bound(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator upper_bound(const key_type& __k) const { return __tree_.upper_bound(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI iterator upper_bound(const _K2& __k) { return __tree_.upper_bound(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI const_iterator upper_bound(const _K2& __k) const { return __tree_.upper_bound(__k); } @@ -2024,11 +2023,11 @@ public: return __tree_.__equal_range_multi(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) { return __tree_.__equal_range_multi(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) const { return __tree_.__equal_range_multi(__k); } @@ -2069,9 +2068,8 @@ template >, class = enable_if_t::value, void>, class = enable_if_t<__is_allocator<_Allocator>::value, void>> -multimap(initializer_list>, - _Compare = _Compare(), - _Allocator = _Allocator()) -> multimap, _Tp, _Compare, _Allocator>; +multimap(initializer_list>, _Compare = _Compare(), _Allocator = _Allocator()) + -> multimap, _Tp, _Compare, _Allocator>; template ::value, void>> -multimap(initializer_list>, - _Allocator) -> multimap, _Tp, less>, _Allocator>; +multimap(initializer_list>, _Allocator) + -> multimap, _Tp, less>, _Allocator>; # endif # ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/set b/libcxx/include/set index 2784e82760d7e..8e8d152c2e867 100644 --- a/libcxx/include/set +++ b/libcxx/include/set @@ -833,11 +833,11 @@ public: _LIBCPP_HIDE_FROM_ABI iterator find(const key_type& __k) { return __tree_.find(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator find(const key_type& __k) const { return __tree_.find(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI iterator find(const _K2& __k) { return __tree_.find(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI const_iterator find(const _K2& __k) const { return __tree_.find(__k); } @@ -845,7 +845,7 @@ public: _LIBCPP_HIDE_FROM_ABI size_type count(const key_type& __k) const { return __tree_.__count_unique(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI size_type count(const _K2& __k) const { return __tree_.__count_multi(__k); } @@ -853,7 +853,7 @@ public: # if _LIBCPP_STD_VER >= 20 _LIBCPP_HIDE_FROM_ABI bool contains(const key_type& __k) const { return find(__k) != end(); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI bool contains(const _K2& __k) const { return find(__k) != end(); } @@ -862,12 +862,12 @@ public: _LIBCPP_HIDE_FROM_ABI iterator lower_bound(const key_type& __k) { return __tree_.lower_bound(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator lower_bound(const key_type& __k) const { return __tree_.lower_bound(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI iterator lower_bound(const _K2& __k) { return __tree_.lower_bound(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI const_iterator lower_bound(const _K2& __k) const { return __tree_.lower_bound(__k); } @@ -876,11 +876,11 @@ public: _LIBCPP_HIDE_FROM_ABI iterator upper_bound(const key_type& __k) { return __tree_.upper_bound(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator upper_bound(const key_type& __k) const { return __tree_.upper_bound(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI iterator upper_bound(const _K2& __k) { return __tree_.upper_bound(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI const_iterator upper_bound(const _K2& __k) const { return __tree_.upper_bound(__k); } @@ -893,11 +893,11 @@ public: return __tree_.__equal_range_unique(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) { return __tree_.__equal_range_multi(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) const { return __tree_.__equal_range_multi(__k); } @@ -935,15 +935,13 @@ template ::value, void>, class = enable_if_t<__is_allocator<_Allocator>::value, void>> -set(_InputIterator, - _InputIterator, - _Allocator) -> set<__iter_value_type<_InputIterator>, less<__iter_value_type<_InputIterator>>, _Allocator>; +set(_InputIterator, _InputIterator, _Allocator) + -> set<__iter_value_type<_InputIterator>, less<__iter_value_type<_InputIterator>>, _Allocator>; # if _LIBCPP_STD_VER >= 23 template ::value, void>> -set(from_range_t, - _Range&&, - _Allocator) -> set, less>, _Allocator>; +set(from_range_t, _Range&&, _Allocator) + -> set, less>, _Allocator>; # endif template ::value, void>> @@ -1298,11 +1296,11 @@ public: _LIBCPP_HIDE_FROM_ABI iterator find(const key_type& __k) { return __tree_.find(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator find(const key_type& __k) const { return __tree_.find(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI iterator find(const _K2& __k) { return __tree_.find(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI const_iterator find(const _K2& __k) const { return __tree_.find(__k); } @@ -1310,7 +1308,7 @@ public: _LIBCPP_HIDE_FROM_ABI size_type count(const key_type& __k) const { return __tree_.__count_multi(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI size_type count(const _K2& __k) const { return __tree_.__count_multi(__k); } @@ -1318,7 +1316,7 @@ public: # if _LIBCPP_STD_VER >= 20 _LIBCPP_HIDE_FROM_ABI bool contains(const key_type& __k) const { return find(__k) != end(); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI bool contains(const _K2& __k) const { return find(__k) != end(); } @@ -1327,12 +1325,12 @@ public: _LIBCPP_HIDE_FROM_ABI iterator lower_bound(const key_type& __k) { return __tree_.lower_bound(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator lower_bound(const key_type& __k) const { return __tree_.lower_bound(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI iterator lower_bound(const _K2& __k) { return __tree_.lower_bound(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI const_iterator lower_bound(const _K2& __k) const { return __tree_.lower_bound(__k); } @@ -1341,11 +1339,11 @@ public: _LIBCPP_HIDE_FROM_ABI iterator upper_bound(const key_type& __k) { return __tree_.upper_bound(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator upper_bound(const key_type& __k) const { return __tree_.upper_bound(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI iterator upper_bound(const _K2& __k) { return __tree_.upper_bound(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI const_iterator upper_bound(const _K2& __k) const { return __tree_.upper_bound(__k); } @@ -1358,11 +1356,11 @@ public: return __tree_.__equal_range_multi(__k); } # if _LIBCPP_STD_VER >= 14 - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) { return __tree_.__equal_range_multi(__k); } - template , int> = 0> + template , int> = 0> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) const { return __tree_.__equal_range_multi(__k); } @@ -1394,9 +1392,8 @@ template , class = enable_if_t<__is_allocator<_Allocator>::value, void>, class = enable_if_t::value, void>> -multiset(initializer_list<_Key>, - _Compare = _Compare(), - _Allocator = _Allocator()) -> multiset<_Key, _Compare, _Allocator>; +multiset(initializer_list<_Key>, _Compare = _Compare(), _Allocator = _Allocator()) + -> multiset<_Key, _Compare, _Allocator>; template = 23 template ::value, void>> -multiset(from_range_t, - _Range&&, - _Allocator) -> multiset, less>, _Allocator>; +multiset(from_range_t, _Range&&, _Allocator) + -> multiset, less>, _Allocator>; # endif template ::value, void>> diff --git a/libcxx/include/unordered_map b/libcxx/include/unordered_map index 0ae4138491774..761bdb442ce1b 100644 --- a/libcxx/include/unordered_map +++ b/libcxx/include/unordered_map @@ -1393,11 +1393,11 @@ public: _LIBCPP_HIDE_FROM_ABI iterator find(const key_type& __k) { return __table_.find(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator find(const key_type& __k) const { return __table_.find(__k); } # if _LIBCPP_STD_VER >= 20 - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI iterator find(const _K2& __k) { return __table_.find(__k); } - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI const_iterator find(const _K2& __k) const { return __table_.find(__k); } @@ -1405,7 +1405,7 @@ public: _LIBCPP_HIDE_FROM_ABI size_type count(const key_type& __k) const { return __table_.__count_unique(__k); } # if _LIBCPP_STD_VER >= 20 - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI size_type count(const _K2& __k) const { return __table_.__count_unique(__k); } @@ -1414,7 +1414,7 @@ public: # if _LIBCPP_STD_VER >= 20 _LIBCPP_HIDE_FROM_ABI bool contains(const key_type& __k) const { return find(__k) != end(); } - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI bool contains(const _K2& __k) const { return find(__k) != end(); } @@ -1427,11 +1427,11 @@ public: return __table_.__equal_range_unique(__k); } # if _LIBCPP_STD_VER >= 20 - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) { return __table_.__equal_range_unique(__k); } - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) const { return __table_.__equal_range_unique(__k); } @@ -2145,11 +2145,11 @@ public: _LIBCPP_HIDE_FROM_ABI iterator find(const key_type& __k) { return __table_.find(__k); } _LIBCPP_HIDE_FROM_ABI const_iterator find(const key_type& __k) const { return __table_.find(__k); } # if _LIBCPP_STD_VER >= 20 - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI iterator find(const _K2& __k) { return __table_.find(__k); } - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI const_iterator find(const _K2& __k) const { return __table_.find(__k); } @@ -2157,7 +2157,7 @@ public: _LIBCPP_HIDE_FROM_ABI size_type count(const key_type& __k) const { return __table_.__count_multi(__k); } # if _LIBCPP_STD_VER >= 20 - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI size_type count(const _K2& __k) const { return __table_.__count_multi(__k); } @@ -2166,7 +2166,7 @@ public: # if _LIBCPP_STD_VER >= 20 _LIBCPP_HIDE_FROM_ABI bool contains(const key_type& __k) const { return find(__k) != end(); } - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI bool contains(const _K2& __k) const { return find(__k) != end(); } @@ -2179,11 +2179,11 @@ public: return __table_.__equal_range_multi(__k); } # if _LIBCPP_STD_VER >= 20 - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) { return __table_.__equal_range_multi(__k); } - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) const { return __table_.__equal_range_multi(__k); } @@ -2258,12 +2258,12 @@ template ::value>, class = enable_if_t::value>, class = enable_if_t<__is_allocator<_Allocator>::value>> -unordered_multimap( - initializer_list>, - typename allocator_traits<_Allocator>::size_type = 0, - _Hash = _Hash(), - _Pred = _Pred(), - _Allocator = _Allocator()) -> unordered_multimap, _Tp, _Hash, _Pred, _Allocator>; +unordered_multimap(initializer_list>, + typename allocator_traits<_Allocator>::size_type = 0, + _Hash = _Hash(), + _Pred = _Pred(), + _Allocator = _Allocator()) + -> unordered_multimap, _Tp, _Hash, _Pred, _Allocator>; template = 20 - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI iterator find(const _K2& __k) { return __table_.find(__k); } - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI const_iterator find(const _K2& __k) const { return __table_.find(__k); } @@ -863,7 +863,7 @@ public: _LIBCPP_HIDE_FROM_ABI size_type count(const key_type& __k) const { return __table_.__count_unique(__k); } # if _LIBCPP_STD_VER >= 20 - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI size_type count(const _K2& __k) const { return __table_.__count_unique(__k); } @@ -872,7 +872,7 @@ public: # if _LIBCPP_STD_VER >= 20 _LIBCPP_HIDE_FROM_ABI bool contains(const key_type& __k) const { return find(__k) != end(); } - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI bool contains(const _K2& __k) const { return find(__k) != end(); } @@ -885,11 +885,11 @@ public: return __table_.__equal_range_unique(__k); } # if _LIBCPP_STD_VER >= 20 - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) { return __table_.__equal_range_unique(__k); } - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) const { return __table_.__equal_range_unique(__k); } @@ -941,13 +941,13 @@ template ::value>, class = enable_if_t::value>, class = enable_if_t<__is_allocator<_Allocator>::value>> -unordered_set( - from_range_t, - _Range&&, - typename allocator_traits<_Allocator>::size_type = 0, - _Hash = _Hash(), - _Pred = _Pred(), - _Allocator = _Allocator()) -> unordered_set, _Hash, _Pred, _Allocator>; // C++23 +unordered_set(from_range_t, + _Range&&, + typename allocator_traits<_Allocator>::size_type = 0, + _Hash = _Hash(), + _Pred = _Pred(), + _Allocator = _Allocator()) + -> unordered_set, _Hash, _Pred, _Allocator>; // C++23 # endif template = 20 - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI iterator find(const _K2& __k) { return __table_.find(__k); } - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI const_iterator find(const _K2& __k) const { return __table_.find(__k); } @@ -1470,7 +1470,7 @@ public: _LIBCPP_HIDE_FROM_ABI size_type count(const key_type& __k) const { return __table_.__count_multi(__k); } # if _LIBCPP_STD_VER >= 20 - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI size_type count(const _K2& __k) const { return __table_.__count_multi(__k); } @@ -1479,7 +1479,7 @@ public: # if _LIBCPP_STD_VER >= 20 _LIBCPP_HIDE_FROM_ABI bool contains(const key_type& __k) const { return find(__k) != end(); } - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI bool contains(const _K2& __k) const { return find(__k) != end(); } @@ -1492,11 +1492,11 @@ public: return __table_.__equal_range_multi(__k); } # if _LIBCPP_STD_VER >= 20 - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) { return __table_.__equal_range_multi(__k); } - template && __is_transparent_v>* = nullptr> + template && __is_transparent_v>* = nullptr> _LIBCPP_HIDE_FROM_ABI pair equal_range(const _K2& __k) const { return __table_.__equal_range_multi(__k); }