Skip to content

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

@JohelEGP

Description

@JohelEGP

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].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions