Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds stride_view to cmcstl2 #327

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

adds stride_view to cmcstl2 #327

wants to merge 1 commit into from

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.

include/stl2/view/stride.hpp Outdated Show resolved Hide resolved
} // 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