[libcxx-commits] [libcxx] [libc++] Don't double-wrap iterators when bounded iterators are used (PR #182264)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Mar 1 17:53:47 PST 2026
================
@@ -53,9 +53,6 @@ _LIBCPP_BEGIN_NAMESPACE_STD
// optimizations deleting non-redundant bounds checks.
template <class _Iterator>
struct __bounded_iter {
- static_assert(__libcpp_is_contiguous_iterator<_Iterator>::value,
----------------
frederick-vs-ja wrote:
Do we want to `static_assert` that `__bounded_iter` only wraps pointer to object types? Same for `__static_bounded_iter`.
https://github.com/llvm/llvm-project/pull/182264
More information about the libcxx-commits
mailing list