[libcxx-commits] [libcxx] [libc++] Use __wrap_iter in string_view and array in the unstable ABI (PR #74482)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 5 08:10:42 PST 2023
================
@@ -168,10 +169,15 @@ struct _LIBCPP_TEMPLATE_VIS array
typedef _Tp value_type;
typedef value_type& reference;
typedef const value_type& const_reference;
- typedef value_type* iterator;
- typedef const value_type* const_iterator;
typedef value_type* pointer;
typedef const value_type* const_pointer;
+#if defined(_LIBCPP_ABI_USE_WRAP_ITER_IN_STD_ARRAY)
+ typedef __wrap_iter<pointer> iterator;
----------------
philnik777 wrote:
Maybe refactor to `using` aliases while we're at it?
https://github.com/llvm/llvm-project/pull/74482
More information about the libcxx-commits
mailing list