[llvm] [libcxx] [clang-tools-extra] [clang] [libcxx] adds ranges::fold_left_with_iter and ranges::fold_left (PR #75259)

Konstantin Varlamov via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 20 11:14:59 PST 2023


================
@@ -0,0 +1,259 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// <algorithm>
+
+// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
+
+// Checks that `std::ranges::fold_left_with_iter`'s requirements reject parameters that don't meet
----------------
var-const wrote:

Nit: this comment should also mention `fold_left`.

Consider also copying the declaration of the algorithms into the comment, so that the exact requirements are easy to see.

https://github.com/llvm/llvm-project/pull/75259


More information about the cfe-commits mailing list