[libcxx-commits] [libcxx] [libc++][numeric] Marked saturation artithmetic functions as `[[nodiscard]]` (PR #166898)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 7 19:27:03 PST 2025


================
@@ -0,0 +1,23 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: std-at-least-c++26
+
+// <numeric>
+
+#include <numeric>
+
+// clang-format off
+void test() {
----------------
H-G-Hristov wrote:

Done! Thank you!

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


More information about the libcxx-commits mailing list