mp11
mp11 copied to clipboard
Maybe add (mp_)list_invoke
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?