[libcxx-commits] [libcxx] [libc++][ranges] Applied [[nodiscard]] to `adjacent_transform_view` (PR #205900)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jun 30 03:53:39 PDT 2026
================
@@ -0,0 +1,93 @@
+
+//===----------------------------------------------------------------------===//
+//
+// 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++23
+
+// Test the libc++ extension that std::ranges::adjacent_transform_view and std::views::adjacent_transform are marked as [[nodiscard]].
+
+#include <ranges>
+#include <utility>
+#include <functional>
----------------
Zingam wrote:
Nit: We sort the includes in alphabetical order. Let's fix that everywhere.
https://github.com/llvm/llvm-project/pull/205900
More information about the libcxx-commits
mailing list