[libcxx-commits] [libcxx] [libc++] Partially implement P2846R6: `reserve_hint` (PR #206385)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 1 18:04:10 PDT 2026
================
@@ -149,6 +149,22 @@ class adjacent_transform_view : public view_interface<adjacent_transform_view<_V
{
return __inner_.size();
}
+
+# if _LIBCPP_STD_VER >= 26
+
+ [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto reserve_hint()
----------------
inquisitivecrystal wrote:
I've added `[[nodiscard]]` tests for ranges that have them for other member functions. `adjacent_view`, `adjacent_transform_view`, and `elements_view` don't have any `[[nodiscard]]` tests. That seems like an oversight, but adding a set is probably out of scope.
https://github.com/llvm/llvm-project/pull/206385
More information about the libcxx-commits
mailing list