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

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 14 05:07:57 PDT 2026


================

----------------
philnik777 wrote:

You have the standard wording. You could for example say
```
bullet 1:
If ranges::size(E) is a valid expression, ranges::reserve_hint(E) is expression-equivalent to ranges::size(E).
```

And then check that they are indeed expression-equivalent (i.e. SFINAE if false, otherwise propagate noexcept and behaviour of course).

It looks like other tests in this area aren't testing expression equivalence properly either unfortunately.


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


More information about the libcxx-commits mailing list