![]() |
Home | Libraries | People | FAQ | More |
Creates a unfused_lvalue_args
adapter
for a given, unary Polymorphic
Function Object. The usual element
conversion is applied to the target function.
template <typename F>
inline typename make_unfused_lvalue_args
<F>::type
make_unfused_lvalue_args(F const & f);
Parameter |
Requirement |
Description |
---|---|---|
|
Model of Polymorphic Function Object |
The function to transform. |
make_unfused_lvalue_args(f);
Return type: A specialization of unfused_lvalue_args
.
Semantics: Returns a unfused_lvalue_args
adapter
for f
.
#include <boost/fusion/functional/generation/make_unfused_lvalue_args.hpp> #include <boost/fusion/include/make_unfused_lvalue_args.hpp>
struct fused_incrementer
{
template <class Seq>
struct result
{
typedef void type;
};
template <class Seq>
void operator()(Seq const & s) const
{
for_each
(s,++boost::lambda::_1);
}
};
void try_it()
{
int a = 2; char b = 'X';
make_unfused_lvalue_args(fused_incrementer())(a,b);
assert(a == 3 && b == 'Y');
}