We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, views::repeat_n is a range factory that cannot be piped into:
views::repeat_n
std::vector vec{1, 2, 3}; views::repeat_n(vec, 2); // [[1, 2, 3], [1, 2, 3]]
So this naturally raises the question: why isn't repeat_n an adaptor, such that vec | views::repeat_n(2) is also valid?
repeat_n
vec | views::repeat_n(2)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently,
views::repeat_n
is a range factory that cannot be piped into:So this naturally raises the question: why isn't
repeat_n
an adaptor, such thatvec | views::repeat_n(2)
is also valid?The text was updated successfully, but these errors were encountered: