[libcxx-commits] [libcxx] [libc++] P3016R6: Resolve inconsistencies in begin/end for `valarray` and braced initializer lists (PR #173637)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 5 08:32:53 PST 2026


================
@@ -786,6 +788,9 @@ public:
   typedef _Tp value_type;
   typedef _Tp __result_type;
 
+  typedef _Tp* iterator;
+  typedef const _Tp* const_iterator;
----------------
philnik777 wrote:

Is it though? It's been unspecified what `begin()` returns before, and we're introducing the `{const_,}iterator` aliases only now. @ldionne any thoughts?

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


More information about the libcxx-commits mailing list