[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
================
@@ -73,6 +74,15 @@ class ref_view : public view_interface<ref_view<_Range>> {
{
return ranges::data(*__range_);
}
+
+# if _LIBCPP_STD_VER >= 26
+ [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto reserve_hint() const
----------------
Zingam wrote:
Nit: For consistency:
```suggestion
# if _LIBCPP_STD_VER >= 26
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto reserve_hint() const
```
https://github.com/llvm/llvm-project/pull/206385
More information about the libcxx-commits
mailing list