...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Creates a fused_procedure
adapter for
a given Deferred
Callable Object. The usual element
conversion applied to the target function.
template <typename F>
inline typename result_of::make_fused_procedure
<F>::type
make_fused_procedure(F const & f);
Parameter |
Requirement |
Description |
---|---|---|
|
Model of Callable Object |
The function to transform. |
make_fused_procedure(f);
Return type: A specialization of fused_procedure
.
Semantics: Returns a fused_procedure
adapter for
f
.
#include <boost/fusion/functional/generation/make_fused_procedure.hpp> #include <boost/fusion/include/make_fused_procedure.hpp>
vector
<int,int,int> v(1,2,3); using namespace boost::lambda; make_fused_procedure(_1 += _2 - _3)(v); assert(front
(v) == 0);