[libcxx-commits] [libcxx] [libc++] Don't double-wrap iterators when bounded iterators are used (PR #182264)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Mar 5 01:46:42 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,
----------------
philnik777 wrote:
I guess we can? Though I'm not convinced it's all that useful. It's not like you can iterate over non-object pointers, so as soon as you try to use the iterator as such it will fail.
https://github.com/llvm/llvm-project/pull/182264
More information about the libcxx-commits
mailing list