Skip to content

adds stride_view to cmcstl2#327

Open
cjdb wants to merge 1 commit intoCaseyCarter:masterfrom
cjdb:stride_view
Open

adds stride_view to cmcstl2#327
cjdb wants to merge 1 commit intoCaseyCarter:masterfrom
cjdb:stride_view

Conversation

@cjdb
Copy link
Collaborator

@cjdb cjdb commented Aug 18, 2019

stride_view is one of the things I regret not getting into C++20, so much so, that I'm planning on:

  1. implementing it at CppCon on stage, so people don't use filter_view as an ad-hoc stride;
  2. writing a proposal for it for Belfast (even if it's not discussed till Bulgaria)


parent_t* parent_ = nullptr;
iterator_t<base_t> current_{};
range_difference_t<base_t> step_{};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a non_propagating_cache, but I've been having difficulty getting it to hold its value.

} // namespace ext

namespace views::ext {
struct __stride_fn : detail::__pipeable<__stride_fn> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently it's not necessary to derive from detail::__pipeable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant