Skip to content

US313 25.02 [algorithms.requirements] Properly define scope of subclause to cover [specialized.algorithms] #309

Closed
cplusplus/draft
#3763
@wg21bot

Description

@wg21bot

This subclause describes general purpose wording that applies to all algorithms in the standard, without defining algorithm. It generally applies such definitions to algorithms "in this clause", but the wording for specialized algorithms in 20.10.11 [specialized.algorithms] relies on this wording too, especially to provide definitions for its ranges overloads.

Proposed change:
Revise this subclause to include a definition of algorithm, so that all the wording that applies to this subclause instead applies to all algorithms. Reasonable definitions of algorithm (for the purposes of the standard library) might be all function templates in clause 25, and clause 20.10.11, or some definition constructed around function templates having arguments of iterator or range type. The former is likely a simpler fix for C++20, the latter would avoid having to update the list of locations for algorithms in the future,

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions