[libcxx-commits] [libcxx] [libc++] Implement `ranges::fold_left_first` and `ranges::fold_left_first_with_iter` (PR #180214)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 9 04:42:40 PST 2026
================
@@ -0,0 +1,341 @@
+//===----------------------------------------------------------------------===//
+//
+// 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>
+
+// REQUIRES: std-at-least-c++23
+
+// MSVC warning C4244: 'argument': conversion from 'double' to 'const int', possible loss of data
+// ADDITIONAL_COMPILE_FLAGS(cl-style-warnings): /wd4244
----------------
frederick-vs-ja wrote:
I think it's better to perform explicit cast within the functor. It doesn't seem valuable to me to test the algorithms with heterogeneous parameters here, as we've done this with `&Long::plus`.
https://github.com/llvm/llvm-project/pull/180214
More information about the libcxx-commits
mailing list