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

Is there an efficient way to walk a vector n elements in? #9

Open
njlr opened this issue Oct 30, 2018 · 1 comment
Open

Is there an efficient way to walk a vector n elements in? #9

njlr opened this issue Oct 30, 2018 · 1 comment
Labels
question Further information is requested

Comments

@njlr
Copy link
Contributor

njlr commented Oct 30, 2018

No description provided.

@njlr njlr added the question Further information is requested label Oct 30, 2018
@nikhedonia
Copy link
Collaborator

although this is possible:

 vector >> drop(n) >> take(m);

Given that this is an random access container I'd suggest implementing an slice / advance operator that is random-access iterator aware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants