mp11 icon indicating copy to clipboard operation
mp11 copied to clipboard

Maybe add (mp_)list_invoke

Open pdimov opened this issue 2 years ago • 0 comments

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?

pdimov avatar Jun 23 '23 16:06 pdimov