Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

<algorithm>: ranges::clamp doesn't meet the complexity requirements #1893

Closed
Labels
bugSomething isn't workingfixedSomething works now, yay!rangesC++20/23 ranges
@timsong-cpp

Description

@timsong-cpp

STL/stl/inc/algorithm

Lines 10207 to 10213 in65eb507

if (_STD invoke(_Pred, _STD invoke(_Proj, _Val), _STD invoke(_Proj, _Lo))) {
return _Lo;
}
if (_STD invoke(_Pred, _STD invoke(_Proj, _Hi), _STD invoke(_Proj, _Val))) {
return _Hi;
}

This applies the projection up to four times.[alg.clamp]/5 is clear that the projection may be applied at most three times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedSomething works now, yay!rangesC++20/23 ranges

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp