cplusplus / cplusplus/draft

[std] Where template can be replaced with auto, or vice versa

Open
#4,822 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Following the discussion at #4817, I searched the WD for &&... and found some places where these could be swapped.

  • Use familiar template syntax for lambdas: [allocator.uses.construction], [allocator.adaptor.members], [range.utility.conv.to].
  • Remove redundant parameter pack:
    • [dcl.fct.def.coroutine]'s example.
    • [unique.ptr.creation]'s =deleted overloads. Perhaps useful for symmetry with the non-deleted overloads.
    • In containers: [deque.modifiers], [list.modifiers], [vector.modifiers], [vector.bool], [map.overview]'s emplace{,_hint}, [multimap.overview], [set.overview], [multiset.overview], [unord.map.overview]'s emplace{,_hint}, [unord.multimap.overview], [unord.set.overview], [unord.multiset.overview].

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

Start in the WD by searching for &&..., then inspect the listed clauses: allocator.uses.construction, allocator.adaptor.members, range.utility.conv.to, dcl.fct.def.coroutine, unique.ptr.creation, and the container sections. Done means applying the proposed template-versus-auto and redundant-parameter-pack changes consistently across the identified examples and overloads.

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.