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

Maybe add (mp_)list_invoke #83

Open
pdimov opened this issue Jun 23, 2023 · 0 comments
Open

Maybe add (mp_)list_invoke #83

pdimov opened this issue Jun 23, 2023 · 0 comments

Comments

@pdimov
Copy link
Member

pdimov commented Jun 23, 2023

template<class L, class F> auto list_invoke( F&& f );

// Returns: f( T{}... ), where T... are the elements of L, or mp_value<A>{}..., for a value list

Motivation: https://twitter.com/ericniebler/status/1671986987396415491

list_invoke<mp_iota_c<5>>( [&](auto... I){ ... } );

Name TBD. mp_with_list?

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

1 participant