[libcxx-commits] [libcxx] Libcxx nth element small ranges (PR #215698)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 12 06:04:29 PDT 2026
================
@@ -0,0 +1,123 @@
+//===----------------------------------------------------------------------===//
+//
+// 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>
+
----------------
ldionne wrote:
We normally add the function(s) being tested to the synopsis of tests.
```suggestion
// <algorithm>
//
// template <class RandomAccessIter>
// constexpr void nth_element(RandomAccessIter first, RandomAccessIter nth, RandomAccessIter last); // constexpr in C++20
```
If this test is folded into the existing tests, this point is moot.
https://github.com/llvm/llvm-project/pull/215698
More information about the libcxx-commits
mailing list