[libcxx-commits] [libcxx] [libc++] Fix rvalue_iterator arithmetic operators in tests (PR #220686)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Sep 3 01:55:08 PDT 2026


philnik777 wrote:

> Looks like that we only use it in `libcxx/test/std/ranges/range.adaptors/range.as.rvalue/adaptor.pass.cpp`.
> 
> https://github.com/llvm/llvm-project/blob/907dd67f959483a8b5dd12aa28dfc3bdb3469311/libcxx/test/std/ranges/range.adaptors/range.as.rvalue/adaptor.pass.cpp#L86-L91
> 
> I'm not sure whether `rvalue_iterator` actually improves coverage. `std::move_iterator` seems to do the same things. CC @philnik777.

I think the point might have been that it's a user-defined type, so we don't just specialize for `std::move_iterator` or something like that, but I don't even remember writing this.

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


More information about the libcxx-commits mailing list