[libcxx-commits] [libcxx] [libc++] Partially implement P2846R6: `reserve_hint` (PR #206385)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 4 02:02:06 PDT 2026


frederick-vs-ja wrote:

Mostly LGTM now.

Could you add something like

```C++
#  if _LIBCPP_STD_VER >= 26
#    include <__ranges/reserve_hint.h>
#  endif
```

below these lines

https://github.com/llvm/llvm-project/blob/24d2a96518ced6d86219d0aa2b9ad7326271fd8e/libcxx/include/iterator#L740-L748

And enable coverage in this line?
https://github.com/llvm/llvm-project/blob/24d2a96518ced6d86219d0aa2b9ad7326271fd8e/libcxx/test/std/ranges/range.access/include.iterator.pass.cpp#L58-L60

https://github.com/llvm/llvm-project/pull/206385


More information about the libcxx-commits mailing list