P2846R6 `ranges::reserve_hint`
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 11.1k
- Forks
- 1.7k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 22
Description
WG21-P2846R6 ranges::reserve_hint
LWG-4235 cache_latest_view and to_input_view miss reserve_hint
LWG-4236 chunk_view::outer-iterator::value_type should provide reserve_hint
LWG-4553 Add a reserve_hint function to concat_view [when both this and #4514 are implemented]
Feature-test macro:
#define __cpp_lib_ranges_reserve_hint 202502L
Note: We are not yet accepting PRs for C++26 features.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading WG21-P2846R6 and the listed LWG-4235, LWG-4236, and LWG-4553 items. Confirm the scope for reserve_hint across cache_latest_view, to_input_view, chunk_view's outer iterator value_type, and concat_view, then check the __cpp_lib_ranges_reserve_hint 202502L macro. The issue notes that PRs are not yet being accepted for C++26 features.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100