Landing: 07448319bb64
Project / Subsystem
gcc / libstdc++
Date
2026-04-24
Author
Tomasz Kamiński
Commit
07448319bb645010fac7cc924a2bc287f4f394e9
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- 07448319bb645010fac7cc924a2bc287f4f394e9
- source_type
- github
- headline
- libstdc++: Support integer-class sized range in inplace_vector.
- tldr
- Allows `inplace_vector` to accept ranges sized by integer-class types by casting the range size to `size_t`.
- author
- Tomasz Kamiński
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • inplace_vector
- • containers
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-04-24T00:00:00.000Z
This commit enhances inplace_vector to support ranges sized by integer-class types. It casts the size of the input range to size_t after verifying that it fits within the remaining capacity, ensuring compatibility with such ranges. New tests were added to verify the functionality for construction, assignment, and insertion from ranges with integer-class size types, enhancing the robustness of the inplace_vector.