[libcxx-commits] [libcxx] [libc++][hardening] Use bounded iterators in std::vector and std::string (PR #78929)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 19 10:02:55 PDT 2024
================
@@ -918,11 +926,27 @@ private:
__init_with_sentinel(std::move(__first), std::move(__last));
}
+#ifdef _LIBCPP_ABI_BOUNDED_ITERATORS
+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 iterator __make_iterator(pointer __p) {
+ return __make_bounded_iter(
----------------
ldionne wrote:
```suggestion
return std::__make_bounded_iter(
```
https://github.com/llvm/llvm-project/pull/78929
More information about the libcxx-commits
mailing list