[libcxx-commits] [libcxx] [libc++] Partially implement P2846R6: `reserve_hint` (PR #206385)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 1 20:30:32 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()
----------------
Zingam wrote:
We are working on adding `[[nodiscard]]` to the library. There few views in `<ranges>` that have not been done yet.
https://github.com/llvm/llvm-project/issues/172124
Feel free to add test just for reserve_hint.
The adjacent_view patch was merged and the others should follow soon.
https://github.com/llvm/llvm-project/pull/206385
More information about the libcxx-commits
mailing list