microsoft / microsoft/STL

LWG-4490 Allow calling `std::ranges::size` in ranges algorithms

Open
#6,320 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.