[libcxx-commits] [libcxx] [libc++] Partially implement P2846R6: `reserve_hint` (PR #206385)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 7 00:55:28 PDT 2026
================
@@ -112,7 +112,7 @@
"`P3430R3 <https://wg21.link/P3430R3>`__","simd issues: explicit, unsequenced, identity-element position, and members of disabled simd","2025-02 (Hagenberg)","","","`#127881 <https://github.com/llvm/llvm-project/issues/127881>`__",""
"`P2663R7 <https://wg21.link/P2663R7>`__","Interleaved complex values support in ``std::simd``","2025-02 (Hagenberg)","","","`#127882 <https://github.com/llvm/llvm-project/issues/127882>`__",""
"`P2933R4 <https://wg21.link/P2933R4>`__","Extend ``<bit>`` header function with overloads for ``std::simd``","2025-02 (Hagenberg)","","","`#127883 <https://github.com/llvm/llvm-project/issues/127883>`__",""
-"`P2846R6 <https://wg21.link/P2846R6>`__","``reserve_hint``: Eagerly reserving memory for not-quite-sized lazy ranges","2025-02 (Hagenberg)","","","`#127884 <https://github.com/llvm/llvm-project/issues/127884>`__",""
+"`P2846R6 <https://wg21.link/P2846R6>`__","``reserve_hint``: Eagerly reserving memory for not-quite-sized lazy ranges","2025-02 (Hagenberg)","|Partial|","24","`#127884 <https://github.com/llvm/llvm-project/issues/127884>`__","``__cpp_lib_ranges_reserve_hint`` is not set. Container operations that take a range as input do not respect ``reserve_hint``. ``as_const_view``, ``chunk_view``, and ``slide_view`` are not yet supported."
----------------
inquisitivecrystal wrote:
It's the "Container operations..." bit. The proposal makes changing containers other than `vector` to properly support `reserve_hint` on their functions recommended practice rather than mandated, but I've been presuming that everyone expects us to support them properly anyway. Thus, I've been treating the `vector` modification as just one of the container modifications that needs to happen, even though it's technically the only one that's normatively mandated.
By that logic, the phrasing would be something like "Changes to containers, `as_const_view`, `chunk_view`, and `slide_view` are not yet implemented." But I'm open to feedback if I'm approaching this wrong.
https://github.com/llvm/llvm-project/pull/206385
More information about the libcxx-commits
mailing list