Skip to content

Commit eaca2d6

Browse files
authored
Implement std::counted_iterator (#4288)
* Implement `std::counted_iterator` * Address review feedback * Fix merge conflict
1 parent 25dd994 commit eaca2d6

31 files changed

+2742
-6
lines changed

libcudacxx/include/cuda/std/__concepts/concept_macros.h

+4
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ extern _Tp __cccl_make_dependent;
9090
template <class _Impl, class... _Args>
9191
using __cccl_requires_expr_impl = decltype(__cccl_make_dependent<_Impl, _Args...>);
9292

93+
template <typename _Tp>
94+
_LIBCUDACXX_HIDE_FROM_ABI constexpr void __cccl_unused(_Tp&&) noexcept
95+
{}
96+
9397
// So that we can refer to the ::cuda::std namespace below
9498
_LIBCUDACXX_BEGIN_NAMESPACE_STD
9599
_LIBCUDACXX_END_NAMESPACE_STD

libcudacxx/include/cuda/std/__iterator/bounded_iter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ struct __bounded_iter
224224
return __iter >= __begin_ && __iter < __end_;
225225
}
226226

227-
template <class>
227+
template <class, class>
228228
friend struct pointer_traits;
229229
_Iterator __current_; // current iterator
230230
_Iterator __begin_, __end_; // valid range represented as [begin, end)

0 commit comments

Comments
 (0)