[libcxx-commits] [libcxx] [libc++][hardening] Use bounded iterators in std::vector and std::string (PR #78929)

Konstantin Varlamov via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 22 13:59:00 PDT 2024


================
@@ -786,9 +787,16 @@ public:
                 "[allocator.requirements] states that rebinding an allocator to the same type should result in the "
                 "original allocator");
 
-  // TODO: Implement iterator bounds checking without requiring the global database.
+#ifdef _LIBCPP_ABI_BOUNDED_ITERATORS
----------------
var-const wrote:

Done (leaving the comment open as a reminder that we need to do some further cleanup).

https://github.com/llvm/llvm-project/pull/78929


More information about the libcxx-commits mailing list