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

parameter pack filter and reorder #66

Closed
feverzsj opened this issue Mar 15, 2023 · 1 comment
Closed

parameter pack filter and reorder #66

feverzsj opened this issue Mar 15, 2023 · 1 comment

Comments

@feverzsj
Copy link

feverzsj commented Mar 15, 2023

Is it possible to filter and reorder a parameter pack?

void foo(auto&&... args)
{
    qoo(std::forward_as_tuple(std::forward<decltype(args)>(args)...)
        | std::views::filter(???)
        | std::views::reverse);
}
@kris-jusiak
Copy link
Contributor

Yeah, that's possible with the previous version and the current version.

For the previous version - https://godbolt.org/z/v5qss7WE7
For the current version - https://godbolt.org/z/cqz9KEzra

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

No branches or pull requests

2 participants