[libcxx-commits] [libcxx] [libc++] Partially implement P2846R6: `reserve_hint` (PR #206385)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 14 05:41:38 PDT 2026
================
@@ -0,0 +1,41 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+
+// Test the libc++-specific behavior that the call operator of the
+// std::ranges::reserve_hint customization point object is static.
----------------
inquisitivecrystal wrote:
I was told to test [[nodiscard]], which isn't required by the standard anymore either. That was a libcxx test, so I thought I should add this as a libcxx test too. Of course, they're not exactly the same, as that's actually intended to be user-visible and this is only so incidentally. Is that the basis for the distinction you're making?
https://github.com/llvm/llvm-project/pull/206385
More information about the libcxx-commits
mailing list