[libcxx-commits] [PATCH] D156924: WIP: [libc++][ranges] Implement `ranges::stride_view`.
Will Hawkins via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 2 12:02:16 PDT 2023
hawkinsw added a comment.
In D156924#4555070 <https://reviews.llvm.org/D156924#4555070>, @Mordante wrote:
> Thanks for working on this!
>
> I'm not to familiar with ranges to I leave a real review to others. I mainly glossed over the patch.
>
> Based on https://libcxx.llvm.org/Status/Ranges @H-G-Hristov is working on this too, @H-G-Hristov what is the status of your work?
>
> If you want to work on a different view nobody is working on please let us know, we can put your name on it.
I am really eager to help however I can! I am a huge language geek and love open source. The past two days of coding on this little side project have been the most eye-opening C++ experience I have had since I started (mid 90s). If @H-G-Hristov wants to take over, that's great -- just assign me whatever needs to be done!
Will
================
Comment at: libcxx/include/__ranges/stride_view.h:187
+ _LIBCPP_HIDE_FROM_ABI
+ constexpr __iterator(__iterator<!_Const> __i) requires _Const && std::convertible_to<ranges::iterator_t<_View>, ranges::iterator_t<_Base>> && std::convertible_to<ranges::sentinel_t<_View>, ranges::sentinel_t<_Base>>
+ : __current_(std::move(__i.__current_)), __end_(std::move(__i.__end_)), __stride_(__i.__stride_), __missing_(__i.__missing_)
----------------
Mordante wrote:
> This line is too long, please use clang-format to format the patch.
Will do!!
This is actually a meta question -- I ran `clang-format` (in the `libcxx/` directory with the `.clang-format` file) and noticed that the result was nothing like what the other files looked like. I was worried that I had done something wrong.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156924/new/
https://reviews.llvm.org/D156924
More information about the libcxx-commits
mailing list