[libcxx-commits] [libcxx] [libc++] Partially implement P2846R6: `reserve_hint` (PR #206385)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Sep 4 22:28:41 PDT 2026
================
@@ -0,0 +1,82 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+
+// <ranges>
+
+// class enumerate_view
+
+// constexpr auto reserve_hint()
+// requires approximately_sized_range<V>;
+// constexpr auto reserve_hint() const
+// requires approximately_sized_range<const V>;
+
+#include <cassert>
+#include <ranges>
+#include <utility>
+
+#include "test_iterators.h"
+#include "types.h"
----------------
Zingam wrote:
```suggestion
```
This include appears unnecessary. Looks like copy & paste. Maybe there others but I haven't checked.
https://github.com/llvm/llvm-project/pull/206385
More information about the libcxx-commits
mailing list