[all-commits] [llvm/llvm-project] 979c19: [libc++] Fix complexity guarantee in ranges::clamp...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Wed Nov 1 07:43:19 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 979c19ab12f1a6defd9436fc8eaf2bca35fbd655
https://github.com/llvm/llvm-project/commit/979c19ab12f1a6defd9436fc8eaf2bca35fbd655
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2023-11-01 (Wed, 01 Nov 2023)
Changed paths:
M libcxx/include/__algorithm/ranges_clamp.h
M libcxx/test/std/algorithms/alg.sorting/alg.clamp/ranges.clamp.pass.cpp
Log Message:
-----------
[libc++] Fix complexity guarantee in ranges::clamp (#68413)
This patch prevents us from calling the projection more than 3 times in
std::clamp, as required by the Standard.
Fixes #64717
More information about the All-commits
mailing list