...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 unfused_rvalue_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_rvalue_args
<F>::type
make_unfused_rvalue_args(F const & f);
Parameter |
Requirement |
Description |
---|---|---|
|
Model of Polymorphic Function Object |
The function to transform. |
make_unfused_rvalue_args(f);
Return type: A specialization of unfused_rvalue_args
.
Semantics: Returns a unfused_rvalue_args
adapter
for f
.
#include <boost/fusion/functional/generation/make_unfused_rvalue_args.hpp> #include <boost/fusion/include/make_unfused_rvalue_args.hpp>
struct sequence_printer { template <class Seq> struct result { typedef void type; }; template <class Seq> void operator()(Seq const & s) const { std::cout << s << std::endl; } }; void try_it() { make_unfused_rvalue_args(sequence_printer()) (24,"bottles of beer in",'a',"box."); }