LWG-4490 Allow calling `std::ranges::size` in ranges algorithms
Open
Nobody has claimed this yet.
LWG
performance
ranges
- Dominant language
- C++
- Stars
- 11.2k
- Forks
- 1.7k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 22
Description
LWG-4490 Allow calling std::ranges::size in ranges algorithms
It looks like we could indeed take advantage of this; from a brief glance at the implementation, _Get_final_iterator_unwrapped() appears to be relevant. I don't know whether other places would need to be modified.
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 with _Get_final_iterator_unwrapped(), which the issue identifies as potentially relevant, and trace the ranges-algorithm implementations that use it. Determine whether other locations need changes; done means the affected ranges algorithms support calling std::ranges::size as requested by LWG-4490, with appropriate coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100