Front Page / Metafunctions / Invocation / unpack_args |
template< typename F > struct unpack_args { // unspecified // ... };
A higher-order primitive transforming an n-ary Lambda Expression F into an unary Metafunction Class g accepting a single sequence of n arguments.
#include <boost/mpl/unpack_args.hpp>
Parameter | Requirement | Description |
---|---|---|
F | Lambda Expression | A lambda expression to adopt. |
For an arbitrary Lambda Expression f, and arbitrary types a1,... an:
typedef unpack_args<f> g;
Return type: | Metafunction Class. |
---|---|
Semantics: | g is a unary Metafunction Class such that apply_wrapn< g, vector<a1,...an> >::type is identical to apply<F,a1,...an>::type |
BOOST_MPL_ASSERT(( apply< unpack_args< is_same<_1,_2> > , vector<int,int> > ));