Landing: 955316dfc2af
Project / Subsystem
gcc / libstdc++
Date
2026-05-15
Author
Tomasz Kamiński
Commit
955316dfc2af3cc5e7bf6b6418f7a2e60820f89f
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- 955316dfc2af3cc5e7bf6b6418f7a2e60820f89f
- source_type
- github
- headline
- libstdc++: Add begin, end, (const_)iterator members to valarray.
- tldr
- Implements P3016R6 by adding iterator support to `std::valarray` in libstdc++.
- author
- Tomasz Kamiński
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • valarray
- • iterators
- • C++23
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-15T00:00:00.000Z
The std::valarray class in libstdc++ now supports iterators via the begin() and end() member functions, as well as iterator and const_iterator typedefs. This implementation is based on sections 4.3, 4.4, and 4.5 of P3016R6, and is enabled when __glibcxx_valarray >= 202511L. A new test case verifies the functionality.