cplusplus / cplusplus/draft

[string.iterators] should be removed as `basic_string` is a reversible container

Open
#6,222 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

lwg not-editorial
Dominant language
TeX
Stars
221
Forks
813
Avg merge
16h 4m
Merged PRs (30d)
36

Description

basic_string is a contiguous container, so subject to the specification for containers and reversible containers.

The container and reversible container requirements provide a more specific specification for everything in [string.iteartors], such as complexity constraints. All the other containers rely on the requirements for their documentation, and so should basic_string, otherwise it might be (foolishly) argued that by providing an alternate specification, there are no complexity requirements on these operations!

There are several more string member specifications that might be usefully removed, but there are many that do have reasons for their separate spec, so I will follow up further de-specifying string only if this issue is accepted.

Contributor guide

No contributing guide indexed for this repository

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

Search the draft sources for the [string.iterators] section and compare its requirements with the container and reversible container specifications. Determine which string-specific wording can be removed without losing necessary distinctions; done means the redundant section is removed and the surrounding standard references remain coherent.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.