2007-11-25 18:38:02 +00:00
< html >
< head >
2010-01-01 22:00:21 +00:00
< meta http-equiv = "Content-Type" content = "text/html; charset=US-ASCII" >
2009-10-11 16:12:54 +00:00
< title >
make_fused</ title >
2007-11-25 18:38:02 +00:00
< link rel = "stylesheet" href = "../../../../../../../../doc/html/boostbook.css" type = "text/css" >
2010-01-01 22:00:21 +00:00
<<<<<< < .working
2009-10-11 16:12:54 +00:00
< meta name = "generator" content = "DocBook XSL Stylesheets V1.65.1" >
2010-01-01 22:00:21 +00:00
=======
< meta name = "generator" content = "DocBook XSL Stylesheets V1.75.1" >
<<<<<< < .working
> >>>>>> .merge-right.r57125
2009-09-14 07:47:53 +00:00
< link rel = "home" href = "../../../../index.html" title = "Chapter 1. Fusion 2.0" >
2010-01-01 22:00:21 +00:00
=======
< link rel = "home" href = "../../../../index.html" title = "Chapter 1. Fusion 2.0" >
>>>>>>> .merge-right.r58299
2007-11-25 18:38:02 +00:00
< link rel = "up" href = "../functions.html" title = "Functions" >
2009-10-11 16:12:54 +00:00
< link rel = "previous" href = "../functions.html" title = "Functions" >
< link rel = "next" href = "mk_fused_proc.html" title = "
make_fused_procedure" >
2007-11-25 18:38:02 +00:00
</ head >
< body bgcolor = "white" text = "black" link = "#0000FF" vlink = "#840084" alink = "#0000FF" >
< table cellpadding = "2" width = "100%" >< tr >
< td valign = "top" >< img alt = "Boost C++ Libraries" width = "277" height = "86" src = "../../../../../../../../boost.png" ></ td >
2008-07-17 23:59:40 +00:00
< td align = "center" >< a href = "../../../../../../../../index.html" > Home</ a ></ td >
2007-11-25 18:38:02 +00:00
< td align = "center" >< a href = "../../../../../../../libraries.htm" > Libraries</ a ></ td >
2008-07-17 23:59:40 +00:00
< td align = "center" >< a href = "http://www.boost.org/users/people.html" > People</ a ></ td >
< td align = "center" >< a href = "http://www.boost.org/users/faq.html" > FAQ</ a ></ td >
2007-11-25 18:38:02 +00:00
< td align = "center" >< a href = "../../../../../../../../more/index.htm" > More</ a ></ td >
</ tr ></ table >
< hr >
< div class = "spirit-nav" >
< a accesskey = "p" href = "../functions.html" >< img src = "../../../../../../../../doc/html/images/prev.png" alt = "Prev" ></ a >< a accesskey = "u" href = "../functions.html" >< img src = "../../../../../../../../doc/html/images/up.png" alt = "Up" ></ a >< a accesskey = "h" href = "../../../../index.html" >< img src = "../../../../../../../../doc/html/images/home.png" alt = "Home" ></ a >< a accesskey = "n" href = "mk_fused_proc.html" >< img src = "../../../../../../../../doc/html/images/next.png" alt = "Next" ></ a >
</ div >
2009-10-11 16:12:54 +00:00
< div class = "section" lang = "en" >
< div class = "titlepage" >
< div >< div >< h5 class = "title" >
< a name = "fusion.functional.generation.functions.mk_fused" ></ a >< a href = "mk_fused.html" title = "
make_fused" >
2009-09-14 07:47:53 +00:00
make_fused</ a >
2009-10-11 16:12:54 +00:00
</ h5 ></ div ></ div >
< div ></ div >
</ div >
2007-11-25 18:38:02 +00:00
< a name = "fusion.functional.generation.functions.mk_fused.description" ></ a >< h6 >
2010-01-01 22:00:21 +00:00
<<<<<< < .working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
2009-10-11 16:12:54 +00:00
< a name = "id627145" ></ a >
< a href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.description" > Description</ a >
2010-01-01 22:00:21 +00:00
=======
< a name = "id878022" ></ a >
=======
< a name = "id844666" ></ a >
=======
< a name = "id837041" ></ a >
=======
< a name = "id859313" ></ a >
=======
< a name = "id847566" ></ a >
=======
< a name = "id844289" ></ a >
>>>>>>> .merge-right.r58559
>>>>>>> .merge-right.r58549
>>>>>>> .merge-right.r58299
>>>>>>> .merge-right.r57337
>>>>>>> .merge-right.r57242
< a class = "link" href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.description" > Description</ a >
>>>>>>> .merge-right.r57125
2007-11-25 18:38:02 +00:00
</ h6 >
< p >
2009-10-11 16:12:54 +00:00
Creates a < a href = "../../adapters/fused.html" title = "fused" >< tt class = "computeroutput" >< span class = "identifier" > fused</ span ></ tt ></ a > adapter for a given < a href = "../../concepts/def_callable.html" title = " Deferred
Callable Object" > Deferred Callable Object</ a > .
The usual < a href = "../../../notes.html#fusion.notes.element_conversion" >< span class = "emphasis" >< em > element
2007-11-25 18:38:02 +00:00
conversion</ em ></ span ></ a > is applied to the target function.
</ p >
< a name = "fusion.functional.generation.functions.mk_fused.synopsis" ></ a >< h6 >
2010-01-01 22:00:21 +00:00
<<<<<< < .working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
2009-10-11 16:12:54 +00:00
< a name = "id627211" ></ a >
< a href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.synopsis" > Synopsis</ a >
2010-01-01 22:00:21 +00:00
=======
< a name = "id878064" ></ a >
=======
< a name = "id844708" ></ a >
=======
< a name = "id837083" ></ a >
=======
< a name = "id859355" ></ a >
=======
< a name = "id847608" ></ a >
=======
< a name = "id844331" ></ a >
>>>>>>> .merge-right.r58559
>>>>>>> .merge-right.r58549
>>>>>>> .merge-right.r58299
>>>>>>> .merge-right.r57337
>>>>>>> .merge-right.r57242
< a class = "link" href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.synopsis" > Synopsis</ a >
>>>>>>> .merge-right.r57125
2007-11-25 18:38:02 +00:00
</ h6 >
2009-09-14 07:47:53 +00:00
< pre class = "programlisting" >< span class = "keyword" > template</ span > < span class = "special" > < </ span >< span class = "keyword" > typename</ span > < span class = "identifier" > F</ span >< span class = "special" > > </ span >
2009-10-11 16:12:54 +00:00
< span class = "keyword" > inline</ span > < span class = "keyword" > typename</ span > < a href = "../metafunctions/mk_fused.html" title = "
make_fused" >< tt class = "computeroutput" >< span class = "identifier" > make_fused</ span ></ tt ></ a >< span class = "special" > < </ span >< span class = "identifier" > F</ span >< span class = "special" > > ::</ span >< span class = "identifier" > type</ span >
2007-11-25 18:38:02 +00:00
< span class = "identifier" > make_fused</ span >< span class = "special" > (</ span >< span class = "identifier" > F</ span > < span class = "keyword" > const</ span > < span class = "special" > & </ span > < span class = "identifier" > f</ span >< span class = "special" > );</ span >
</ pre >
< a name = "fusion.functional.generation.functions.mk_fused.parameters" ></ a >< h6 >
2010-01-01 22:00:21 +00:00
<<<<<< < .working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
2009-10-11 16:12:54 +00:00
< a name = "id627363" ></ a >
< a href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.parameters" > Parameters</ a >
2010-01-01 22:00:21 +00:00
=======
< a name = "id878171" ></ a >
=======
< a name = "id844814" ></ a >
=======
< a name = "id837190" ></ a >
=======
< a name = "id859462" ></ a >
=======
< a name = "id847715" ></ a >
=======
< a name = "id844438" ></ a >
>>>>>>> .merge-right.r58559
>>>>>>> .merge-right.r58549
>>>>>>> .merge-right.r58299
>>>>>>> .merge-right.r57337
>>>>>>> .merge-right.r57242
< a class = "link" href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.parameters" > Parameters</ a >
>>>>>>> .merge-right.r57125
2007-11-25 18:38:02 +00:00
</ h6 >
< div class = "informaltable" >< table class = "table" >
< colgroup >
< col >
< col >
< col >
</ colgroup >
< thead >< tr >
2009-10-11 16:12:54 +00:00
< th >< p >
2007-11-25 18:38:02 +00:00
Parameter
2009-10-11 16:12:54 +00:00
</ p ></ th >
< th >< p >
2007-11-25 18:38:02 +00:00
Requirement
2009-10-11 16:12:54 +00:00
</ p ></ th >
< th >< p >
2007-11-25 18:38:02 +00:00
Description
2009-10-11 16:12:54 +00:00
</ p ></ th >
2007-11-25 18:38:02 +00:00
</ tr ></ thead >
< tbody >< tr >
2009-10-11 16:12:54 +00:00
< td >< p >
< tt class = "computeroutput" >< span class = "identifier" > f</ span ></ tt >
</ p ></ td >
< td >< p >
Model of < a href = "../../concepts/def_callable.html" title = " Deferred
Callable Object" > Deferred
2007-11-25 18:38:02 +00:00
Callable Object</ a >
2009-10-11 16:12:54 +00:00
</ p ></ td >
< td >< p >
2007-11-25 18:38:02 +00:00
The function to transform.
2009-10-11 16:12:54 +00:00
</ p ></ td >
2007-11-25 18:38:02 +00:00
</ tr ></ tbody >
</ table ></ div >
< a name = "fusion.functional.generation.functions.mk_fused.expression_semantics" ></ a >< h6 >
2010-01-01 22:00:21 +00:00
<<<<<< < .working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
2009-10-11 16:12:54 +00:00
< a name = "id627478" ></ a >
< a href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.expression_semantics" > Expression
2010-01-01 22:00:21 +00:00
=======
< a name = "id878261" ></ a >
=======
< a name = "id844904" ></ a >
=======
< a name = "id837280" ></ a >
=======
< a name = "id859552" ></ a >
=======
< a name = "id847805" ></ a >
=======
< a name = "id844528" ></ a >
>>>>>>> .merge-right.r58559
>>>>>>> .merge-right.r58549
>>>>>>> .merge-right.r58299
>>>>>>> .merge-right.r57337
>>>>>>> .merge-right.r57242
< a class = "link" href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.expression_semantics" > Expression
>>>>>>> .merge-right.r57125
2007-11-25 18:38:02 +00:00
Semantics</ a >
</ h6 >
2009-09-14 07:47:53 +00:00
< pre class = "programlisting" >< span class = "identifier" > make_fused</ span >< span class = "special" > (</ span >< span class = "identifier" > f</ span >< span class = "special" > );</ span >
2007-11-25 18:38:02 +00:00
</ pre >
< p >
2009-10-11 16:12:54 +00:00
< span class = "bold" >< b > Return type</ b ></ span > : A specialization of < a href = "../../adapters/fused.html" title = "fused" >< tt class = "computeroutput" >< span class = "identifier" > fused</ span ></ tt ></ a > .
2007-11-25 18:38:02 +00:00
</ p >
< p >
2009-10-11 16:12:54 +00:00
< span class = "bold" >< b > Semantics</ b ></ span > : Returns a < a href = "../../adapters/fused.html" title = "fused" >< tt class = "computeroutput" >< span class = "identifier" > fused</ span ></ tt ></ a > adapter for < tt class = "computeroutput" >< span class = "identifier" > f</ span ></ tt > .
2007-11-25 18:38:02 +00:00
</ p >
< a name = "fusion.functional.generation.functions.mk_fused.header" ></ a >< h6 >
2010-01-01 22:00:21 +00:00
<<<<<< < .working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
2009-10-11 16:12:54 +00:00
< a name = "id627600" ></ a >
< a href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.header" > Header</ a >
2010-01-01 22:00:21 +00:00
=======
< a name = "id878336" ></ a >
=======
< a name = "id844980" ></ a >
=======
< a name = "id837356" ></ a >
=======
< a name = "id859628" ></ a >
=======
< a name = "id847880" ></ a >
=======
< a name = "id844604" ></ a >
>>>>>>> .merge-right.r58559
>>>>>>> .merge-right.r58549
>>>>>>> .merge-right.r58299
>>>>>>> .merge-right.r57337
>>>>>>> .merge-right.r57242
< a class = "link" href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.header" > Header</ a >
>>>>>>> .merge-right.r57125
2007-11-25 18:38:02 +00:00
</ h6 >
2009-09-14 07:47:53 +00:00
< pre class = "programlisting" >< span class = "preprocessor" > #include</ span > < span class = "special" > < </ span >< span class = "identifier" > boost</ span >< span class = "special" > /</ span >< span class = "identifier" > fusion</ span >< span class = "special" > /</ span >< span class = "identifier" > functional</ span >< span class = "special" > /</ span >< span class = "identifier" > generation</ span >< span class = "special" > /</ span >< span class = "identifier" > make_fused</ span >< span class = "special" > .</ span >< span class = "identifier" > hpp</ span >< span class = "special" > > </ span >
2007-11-25 18:38:02 +00:00
< span class = "preprocessor" > #include</ span > < span class = "special" > < </ span >< span class = "identifier" > boost</ span >< span class = "special" > /</ span >< span class = "identifier" > fusion</ span >< span class = "special" > /</ span >< span class = "identifier" > include</ span >< span class = "special" > /</ span >< span class = "identifier" > make_fused</ span >< span class = "special" > .</ span >< span class = "identifier" > hpp</ span >< span class = "special" > > </ span >
</ pre >
< a name = "fusion.functional.generation.functions.mk_fused.example" ></ a >< h6 >
2010-01-01 22:00:21 +00:00
<<<<<< < .working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
2009-10-11 16:12:54 +00:00
< a name = "id627766" ></ a >
< a href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.example" > Example</ a >
2010-01-01 22:00:21 +00:00
=======
< a name = "id878452" ></ a >
=======
< a name = "id845095" ></ a >
=======
< a name = "id837471" ></ a >
=======
< a name = "id859743" ></ a >
=======
< a name = "id847996" ></ a >
=======
< a name = "id844719" ></ a >
>>>>>>> .merge-right.r58559
>>>>>>> .merge-right.r58549
>>>>>>> .merge-right.r58299
>>>>>>> .merge-right.r57337
>>>>>>> .merge-right.r57242
< a class = "link" href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.example" > Example</ a >
>>>>>>> .merge-right.r57125
2007-11-25 18:38:02 +00:00
</ h6 >
2009-09-14 07:47:53 +00:00
< pre class = "programlisting" >< span class = "keyword" > float</ span > < span class = "identifier" > sub</ span >< span class = "special" > (</ span >< span class = "keyword" > float</ span > < span class = "identifier" > a</ span >< span class = "special" > ,</ span > < span class = "keyword" > float</ span > < span class = "identifier" > b</ span >< span class = "special" > )</ span > < span class = "special" > {</ span > < span class = "keyword" > return</ span > < span class = "identifier" > a</ span > < span class = "special" > -</ span > < span class = "identifier" > b</ span >< span class = "special" > ;</ span > < span class = "special" > }</ span >
2007-11-25 18:38:02 +00:00
< span class = "keyword" > void</ span > < span class = "identifier" > try_it</ span >< span class = "special" > ()</ span >
< span class = "special" > {</ span >
2009-10-11 16:12:54 +00:00
< a href = "../../../container/vector.html" title = "vector" >< tt class = "computeroutput" >< span class = "identifier" > vector</ span ></ tt ></ a >< span class = "special" > < </ span >< span class = "keyword" > int</ span >< span class = "special" > ,</ span >< span class = "keyword" > float</ span >< span class = "special" > > </ span > < span class = "identifier" > a</ span >< span class = "special" > (</ span >< span class = "number" > 2</ span >< span class = "special" > ,</ span >< span class = "number" > 2.0f</ span >< span class = "special" > );</ span >
< a href = "../../../container/vector.html" title = "vector" >< tt class = "computeroutput" >< span class = "identifier" > vector</ span ></ tt ></ a >< span class = "special" > < </ span >< span class = "keyword" > int</ span >< span class = "special" > ,</ span >< span class = "keyword" > float</ span >< span class = "special" > > </ span > < span class = "identifier" > b</ span >< span class = "special" > (</ span >< span class = "number" > 1</ span >< span class = "special" > ,</ span >< span class = "number" > 1.5f</ span >< span class = "special" > );</ span >
< a href = "../../../container/vector.html" title = "vector" >< tt class = "computeroutput" >< span class = "identifier" > vector</ span ></ tt ></ a >< span class = "special" > < </ span >< span class = "keyword" > float</ span >< span class = "special" > ,</ span >< span class = "keyword" > float</ span >< span class = "special" > > </ span > < span class = "identifier" > c</ span >< span class = "special" > (</ span >< span class = "number" > 1.0f</ span >< span class = "special" > ,</ span >< span class = "number" > 0.5f</ span >< span class = "special" > );</ span >
< span class = "identifier" > assert</ span >< span class = "special" > (</ span >< span class = "identifier" > c</ span > < span class = "special" > ==</ span > < a href = "../../../algorithm/transformation/functions/transform.html" title = "transform" >< tt class = "computeroutput" >< span class = "identifier" > transform</ span ></ tt ></ a >< span class = "special" > (</ span >< a href = "../../../algorithm/transformation/functions/zip.html" title = "zip" >< tt class = "computeroutput" >< span class = "identifier" > zip</ span ></ tt ></ a >< span class = "special" > (</ span >< span class = "identifier" > a</ span >< span class = "special" > ,</ span >< span class = "identifier" > b</ span >< span class = "special" > ),</ span > < span class = "identifier" > make_fused</ span >< span class = "special" > (& </ span > < span class = "identifier" > sub</ span >< span class = "special" > )));</ span >
< span class = "identifier" > assert</ span >< span class = "special" > (</ span >< span class = "identifier" > c</ span > < span class = "special" > ==</ span > < a href = "../../../algorithm/transformation/functions/transform.html" title = "transform" >< tt class = "computeroutput" >< span class = "identifier" > transform</ span ></ tt ></ a >< span class = "special" > (</ span >< a href = "../../../algorithm/transformation/functions/zip.html" title = "zip" >< tt class = "computeroutput" >< span class = "identifier" > zip</ span ></ tt ></ a >< span class = "special" > (</ span >< span class = "identifier" > a</ span >< span class = "special" > ,</ span >< span class = "identifier" > b</ span >< span class = "special" > ),</ span > < span class = "identifier" > make_fused</ span >< span class = "special" > (</ span >< a href = "http://www.sgi.com/tech/stl/minus.html" target = "_top" >< tt class = "computeroutput" >< span class = "identifier" > std</ span >< span class = "special" > ::</ span >< span class = "identifier" > minus</ span ></ tt ></ a >< span class = "special" > < </ span >< span class = "keyword" > float</ span >< span class = "special" > > ())));</ span >
2007-11-25 18:38:02 +00:00
< span class = "special" > }</ span >
</ pre >
< a name = "fusion.functional.generation.functions.mk_fused.see_also" ></ a >< h6 >
2010-01-01 22:00:21 +00:00
<<<<<< < .working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
<<<<<<< . working
2009-10-11 16:12:54 +00:00
< a name = "id628366" ></ a >
< a href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.see_also" > See
2010-01-01 22:00:21 +00:00
=======
< a name = "id878880" ></ a >
=======
< a name = "id845524" ></ a >
=======
< a name = "id837899" ></ a >
=======
< a name = "id860171" ></ a >
=======
< a name = "id848424" ></ a >
=======
< a name = "id845147" ></ a >
>>>>>>> .merge-right.r58559
>>>>>>> .merge-right.r58549
>>>>>>> .merge-right.r58299
>>>>>>> .merge-right.r57337
>>>>>>> .merge-right.r57242
< a class = "link" href = "mk_fused.html#fusion.functional.generation.functions.mk_fused.see_also" > See
>>>>>>> .merge-right.r57125
2007-11-25 18:38:02 +00:00
also</ a >
</ h6 >
2009-10-11 16:12:54 +00:00
< div class = "itemizedlist" >< ul type = "disc" >
< li >< a href = "../../adapters/fused.html" title = "fused" >< tt class = "computeroutput" >< span class = "identifier" > fused</ span ></ tt ></ a ></ li >
< li >< a href = "../../../support/deduce.html" title = "deduce" >< tt class = "computeroutput" >< span class = "identifier" > deduce</ span ></ tt ></ a ></ li >
< li >< a href = "../metafunctions/mk_fused.html" title = "
make_fused" >< tt class = "computeroutput" >< span class = "identifier" > make_fused</ span ></ tt ></ a ></ li >
2007-11-25 18:38:02 +00:00
</ ul ></ div >
</ div >
< table xmlns:rev = "http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width = "100%" >< tr >
< td align = "left" ></ td >
2010-01-01 22:00:21 +00:00
< td align = "right" >< div class = "copyright-footer" > Copyright © 2001-2007 Joel de Guzman, Dan Marsden, Tobias
2007-11-25 18:38:02 +00:00
Schwinger< p >
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at < a href = "http://www.boost.org/LICENSE_1_0.txt" target = "_top" > http://www.boost.org/LICENSE_1_0.txt</ a > )
</ p >
</ div ></ td >
</ tr ></ table >
< hr >
< div class = "spirit-nav" >
< a accesskey = "p" href = "../functions.html" >< img src = "../../../../../../../../doc/html/images/prev.png" alt = "Prev" ></ a >< a accesskey = "u" href = "../functions.html" >< img src = "../../../../../../../../doc/html/images/up.png" alt = "Up" ></ a >< a accesskey = "h" href = "../../../../index.html" >< img src = "../../../../../../../../doc/html/images/home.png" alt = "Home" ></ a >< a accesskey = "n" href = "mk_fused_proc.html" >< img src = "../../../../../../../../doc/html/images/next.png" alt = "Next" ></ a >
</ div >
</ body >
</ html >