[libcxx-commits] [libcxx] [libc++] Partially implement P2846R6: `reserve_hint` (PR #206385)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Aug 6 02:02:14 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.
+
+#include <cstddef>
+#include <ranges>
+
+using RangeReserveHintT = decltype(std::ranges::reserve_hint);
+
+extern int bounded_array[42];
+
+struct HasSizeMember {
----------------
Zingam wrote:
```suggestion
struct SizeMember {
```
In the test suite we usually use these naming convention for concepts `HasXXXX` (ignoring the camel-, snake- and other inconsistent naming schemes). I suggest to drop the "Has".
https://github.com/llvm/llvm-project/pull/206385
More information about the libcxx-commits
mailing list