Skip to content

Commit a4a2a27

Browse files
committed
CI
1 parent e5e0cd7 commit a4a2a27

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

libcxx/include/__flat_map/key_value_iterator.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ template <class _Owner, class _KeyContainer, class _MappedContainer, bool _Const
174174
struct __product_iterator_traits<__key_value_iterator<_Owner, _KeyContainer, _MappedContainer, _Const>> {
175175
static constexpr size_t __size = 2;
176176

177-
template <size_t _N>
177+
template <size_t _Nth>
178178
_LIBCPP_HIDE_FROM_ABI static auto
179179
__get_iterator_element(__key_value_iterator<_Owner, _KeyContainer, _MappedContainer, _Const> __it)
180-
requires(_N == 0 || _N == 1)
180+
requires(_Nth <= 1)
181181
{
182-
if constexpr (_N == 0) {
182+
if constexpr (_Nth == 0) {
183183
return __it.__key_iter_;
184184
} else {
185185
return __it.__mapped_iter_;

libcxx/include/__iterator/product_iterator.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <__cstddef/size_t.h>
2929
#include <__type_traits/enable_if.h>
3030
#include <__type_traits/integral_constant.h>
31+
#include <__utility/declval.h>
3132

3233
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
3334
# pragma GCC system_header
@@ -56,12 +57,12 @@ template <class _Tp, size_t _Size, class = void>
5657
struct __is_product_iterator_of_size : false_type {};
5758

5859
template <class _Tp, size_t _Size>
59-
struct __is_product_iterator_of_size<_Tp, _Size, __enable_if_t<__product_iterator_traits<_Tp>::__size == _Size>>
60+
struct __is_product_iterator_of_size<_Tp, _Size, __enable_if_t<__product_iterator_traits<_Tp>::__size == _Size> >
6061
: true_type {};
6162

62-
template <class _Iterator, size_t _N>
63-
using __product_iterator_element_t =
64-
decltype(__product_iterator_traits<_Iterator>::__get_iterator_element<_N>(declval<_Iterator>()));
63+
template <class _Iterator, size_t _Nth>
64+
using __product_iterator_element_t _LIBCPP_NODEBUG =
65+
decltype(__product_iterator_traits<_Iterator>::__get_iterator_element<_Nth>(std::declval<_Iterator>()));
6566

6667
_LIBCPP_END_NAMESPACE_STD
6768

libcxx/include/__ranges/zip_view.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,10 +478,10 @@ template <class _Iter>
478478
struct __product_iterator_traits<_Iter> {
479479
static constexpr size_t __size = tuple_size<decltype(std::declval<_Iter>().__current_)>::value;
480480

481-
template <size_t _N>
482-
requires(_N < __size)
481+
template <size_t _Nth>
482+
requires(_Nth < __size)
483483
_LIBCPP_HIDE_FROM_ABI static constexpr auto __get_iterator_element(_Iter __it) {
484-
return std::get<_N>(__it.__current_);
484+
return std::get<_Nth>(__it.__current_);
485485
}
486486
};
487487

0 commit comments

Comments
 (0)