<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>libsigc++: bind(), bind_return()</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.2 --> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <h1>bind(), bind_return()<br/> <small> [<a class="el" href="group__adaptors.html">Adaptors</a>]</small> </h1> </div> </div> <div class="contents"> <p>sigc::bind() alters an arbitrary functor by fixing arguments to certain values. <a href="#_details">More...</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="nested-classes"></a> Classes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3_010_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html">sigc::bind_functor< 0, T_functor, T_bound, nil, nil, nil, nil, nil, nil ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds an argument to the wrapped functor. <a href="structsigc_1_1bind__functor_3_010_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3_011_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html">sigc::bind_functor< 1, T_functor, T_bound, nil, nil, nil, nil, nil, nil ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds an argument to the wrapped functor. <a href="structsigc_1_1bind__functor_3_011_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3_012_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html">sigc::bind_functor< 2, T_functor, T_bound, nil, nil, nil, nil, nil, nil ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds an argument to the wrapped functor. <a href="structsigc_1_1bind__functor_3_012_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3_013_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html">sigc::bind_functor< 3, T_functor, T_bound, nil, nil, nil, nil, nil, nil ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds an argument to the wrapped functor. <a href="structsigc_1_1bind__functor_3_013_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3_014_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html">sigc::bind_functor< 4, T_functor, T_bound, nil, nil, nil, nil, nil, nil ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds an argument to the wrapped functor. <a href="structsigc_1_1bind__functor_3_014_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3_015_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html">sigc::bind_functor< 5, T_functor, T_bound, nil, nil, nil, nil, nil, nil ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds an argument to the wrapped functor. <a href="structsigc_1_1bind__functor_3_015_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3_016_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html">sigc::bind_functor< 6, T_functor, T_bound, nil, nil, nil, nil, nil, nil ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds an argument to the wrapped functor. <a href="structsigc_1_1bind__functor_3_016_00_01T__functor_00_01T__bound_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html">sigc::bind_functor<-1, T_functor, T_type1, nil, nil, nil, nil, nil, nil ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds 1 argument(s) to the wrapped functor. <a href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html">sigc::bind_functor<-1, T_functor, T_type1, T_type2, nil, nil, nil, nil, nil ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds 2 argument(s) to the wrapped functor. <a href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01nil_00_01nil_00_01nil_00_01nil_00_01nil_01_4.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01n6d14effad731c8dfead9984e87967108.html">sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, nil, nil, nil, nil ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds 3 argument(s) to the wrapped functor. <a href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01n6d14effad731c8dfead9984e87967108.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T8abd615cc403946700f41917bb90042c.html">sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, nil, nil, nil ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds 4 argument(s) to the wrapped functor. <a href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T8abd615cc403946700f41917bb90042c.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01Tf230465d8da8d21a2da815d7eb05b413.html">sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, nil, nil ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds 5 argument(s) to the wrapped functor. <a href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01Tf230465d8da8d21a2da815d7eb05b413.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T5d526f12c92849dac4a70f282eec9dc2.html">sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, T_type6, nil ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds 6 argument(s) to the wrapped functor. <a href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T5d526f12c92849dac4a70f282eec9dc2.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T1564029be5092b4f54029884f8072971.html">sigc::bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, T_type6, T_type7 ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that binds 7 argument(s) to the wrapped functor. <a href="structsigc_1_1bind__functor_3-1_00_01T__functor_00_01T__type1_00_01T__type2_00_01T__type3_00_01T1564029be5092b4f54029884f8072971.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1bind__return__functor.html">sigc::bind_return_functor< T_return, T_functor ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adaptor that fixes the return value of the wrapped functor. <a href="structsigc_1_1bind__return__functor.html#_details">More...</a><br/></td></tr> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_action , int T_loc, class T_functor , class T_bound > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#gaed4a6aaa9d804f82fd558d553b67c3a8">sigc::visit_each</a> (const T_action& _A_action, const bind_functor< T_loc, T_functor, T_bound >& _A_target)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Performs a functor on each of the targets of a functor. <a href="#gaed4a6aaa9d804f82fd558d553b67c3a8"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_action , class T_functor , class T_type1 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#ga97d5feac063beaf49157990f98aad6fe">sigc::visit_each</a> (const T_action& _A_action, const bind_functor<-1, T_functor, T_type1 >& _A_target)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Performs a functor on each of the targets of a functor. <a href="#ga97d5feac063beaf49157990f98aad6fe"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_action , class T_functor , class T_type1 , class T_type2 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#gaca2e99785599f7631337d5fbbecbc610">sigc::visit_each</a> (const T_action& _A_action, const bind_functor<-1, T_functor, T_type1, T_type2 >& _A_target)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Performs a functor on each of the targets of a functor. <a href="#gaca2e99785599f7631337d5fbbecbc610"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_action , class T_functor , class T_type1 , class T_type2 , class T_type3 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#gab9bc9f3ffe4a706128948eb00751eadc">sigc::visit_each</a> (const T_action& _A_action, const bind_functor<-1, T_functor, T_type1, T_type2, T_type3 >& _A_target)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Performs a functor on each of the targets of a functor. <a href="#gab9bc9f3ffe4a706128948eb00751eadc"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_action , class T_functor , class T_type1 , class T_type2 , class T_type3 , class T_type4 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#gaa60aa29a584517ad422473281ce2864b">sigc::visit_each</a> (const T_action& _A_action, const bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4 >& _A_target)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Performs a functor on each of the targets of a functor. <a href="#gaa60aa29a584517ad422473281ce2864b"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_action , class T_functor , class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_type5 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#ga5237d6d834423536367bf130760e88b3">sigc::visit_each</a> (const T_action& _A_action, const bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5 >& _A_target)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Performs a functor on each of the targets of a functor. <a href="#ga5237d6d834423536367bf130760e88b3"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_action , class T_functor , class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_type5 , class T_type6 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#ga5017f20f5c99a9a1007476a397e6b0af">sigc::visit_each</a> (const T_action& _A_action, const bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, T_type6 >& _A_target)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Performs a functor on each of the targets of a functor. <a href="#ga5017f20f5c99a9a1007476a397e6b0af"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_action , class T_functor , class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_type5 , class T_type6 , class T_type7 > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#gab7f865e06297273a2b5d80b7d7865bdb">sigc::visit_each</a> (const T_action& _A_action, const bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, T_type6, T_type7 >& _A_target)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Performs a functor on each of the targets of a functor. <a href="#gab7f865e06297273a2b5d80b7d7865bdb"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<int I_location, class T_bound1 , class T_functor > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">bind_functor< I_location, <br class="typebreak"/> T_functor, T_bound1 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#ga2148290d2cf9c1961ec157a085badd5a">sigc::bind</a> (const T_functor& _A_func, T_bound1 _A_b1)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an adaptor of type sigc::bind_functor which binds the passed argument to the passed functor. <a href="#ga2148290d2cf9c1961ec157a085badd5a"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_type1 , class T_functor > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">bind_functor<-1, T_functor, <br class="typebreak"/> T_type1 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#ga5858818e62c9df7ded906d9461d012cd">sigc::bind</a> (const T_functor& _A_func, T_type1 _A_b1)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an adaptor of type sigc::bind_functor which fixes the last 1 argument(s) of the passed functor. <a href="#ga5858818e62c9df7ded906d9461d012cd"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_type1 , class T_type2 , class T_functor > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">bind_functor<-1, T_functor, <br class="typebreak"/> T_type1, T_type2 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#ga68057ec737e31fa433a0a5f726f27cd1">sigc::bind</a> (const T_functor& _A_func, T_type1 _A_b1, T_type2 _A_b2)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an adaptor of type sigc::bind_functor which fixes the last 2 argument(s) of the passed functor. <a href="#ga68057ec737e31fa433a0a5f726f27cd1"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_type1 , class T_type2 , class T_type3 , class T_functor > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">bind_functor<-1, T_functor, <br class="typebreak"/> T_type1, T_type2, T_type3 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#ga006c34f47e2a19358be290d438c0de19">sigc::bind</a> (const T_functor& _A_func, T_type1 _A_b1, T_type2 _A_b2, T_type3 _A_b3)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an adaptor of type sigc::bind_functor which fixes the last 3 argument(s) of the passed functor. <a href="#ga006c34f47e2a19358be290d438c0de19"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_functor > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">bind_functor<-1, T_functor, <br class="typebreak"/> T_type1, T_type2, T_type3, <br class="typebreak"/> T_type4 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#gaafb060da662d2ab98bf377c16a5df8f4">sigc::bind</a> (const T_functor& _A_func, T_type1 _A_b1, T_type2 _A_b2, T_type3 _A_b3, T_type4 _A_b4)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an adaptor of type sigc::bind_functor which fixes the last 4 argument(s) of the passed functor. <a href="#gaafb060da662d2ab98bf377c16a5df8f4"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_type5 , class T_functor > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">bind_functor<-1, T_functor, <br class="typebreak"/> T_type1, T_type2, T_type3, <br class="typebreak"/> T_type4, T_type5 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#gae20edab579c98fecb975a5cc698d8ab2">sigc::bind</a> (const T_functor& _A_func, T_type1 _A_b1, T_type2 _A_b2, T_type3 _A_b3, T_type4 _A_b4, T_type5 _A_b5)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an adaptor of type sigc::bind_functor which fixes the last 5 argument(s) of the passed functor. <a href="#gae20edab579c98fecb975a5cc698d8ab2"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_type5 , class T_type6 , class T_functor > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">bind_functor<-1, T_functor, <br class="typebreak"/> T_type1, T_type2, T_type3, <br class="typebreak"/> T_type4, T_type5, T_type6 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#ga7f4b6bd72965b7840fa5b518e0d069c1">sigc::bind</a> (const T_functor& _A_func, T_type1 _A_b1, T_type2 _A_b2, T_type3 _A_b3, T_type4 _A_b4, T_type5 _A_b5, T_type6 _A_b6)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an adaptor of type sigc::bind_functor which fixes the last 6 argument(s) of the passed functor. <a href="#ga7f4b6bd72965b7840fa5b518e0d069c1"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_type5 , class T_type6 , class T_type7 , class T_functor > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">bind_functor<-1, T_functor, <br class="typebreak"/> T_type1, T_type2, T_type3, <br class="typebreak"/> T_type4, T_type5, T_type6, <br class="typebreak"/> T_type7 > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#ga356da93520385d48f66125257d2b8f2b">sigc::bind</a> (const T_functor& _A_func, T_type1 _A_b1, T_type2 _A_b2, T_type3 _A_b3, T_type4 _A_b4, T_type5 _A_b5, T_type6 _A_b6, T_type7 _A_b7)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an adaptor of type sigc::bind_functor which fixes the last 7 argument(s) of the passed functor. <a href="#ga356da93520385d48f66125257d2b8f2b"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_action , class T_return , class T_functor > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#ga27e8bea76ba380b8223b059369b2c485">sigc::visit_each</a> (const T_action& _A_action, const bind_return_functor< T_return, T_functor >& _A_target)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Performs a functor on each of the targets of a functor. <a href="#ga27e8bea76ba380b8223b059369b2c485"></a><br/></td></tr> <tr><td class="memTemplParams" colspan="2">template<class T_return , class T_functor > </td></tr> <tr><td class="memTemplItemLeft" align="right" valign="top">bind_return_functor< T_return, <br class="typebreak"/> T_functor > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__bind.html#ga8a001b0bb588d2ac1af712781b89dc8a">sigc::bind_return</a> (const T_functor& _A_functor, T_return _A_ret_value)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an adaptor of type <a class="el" href="structsigc_1_1bind__return__functor.html" title="Adaptor that fixes the return value of the wrapped functor.">sigc::bind_return_functor</a> which fixes the return value of the passed functor to the passed argument. <a href="#ga8a001b0bb588d2ac1af712781b89dc8a"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>sigc::bind() alters an arbitrary functor by fixing arguments to certain values. </p> <p>Up to 7 arguments can be bound at a time. For single argument binding, overloads of sigc::bind() are provided that let you specify the zero-based position of the argument to fix with the first template parameter. (A value of <code>-1</code> fixes the last argument so sigc::bind<-1>() gives the same result as sigc::bind().) The types of the arguments can optionally be specified if not deduced.</p> <dl class="user"><dt><b>Examples:</b></dt><dd><div class="fragment"><pre class="fragment"> <span class="keywordtype">void</span> foo(<span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>); <span class="comment">// single argument binding ...</span> <a class="code" href="group__bind.html#ga2148290d2cf9c1961ec157a085badd5a" title="Creates an adaptor of type sigc::bind_functor which binds the passed argument to the passed functor...">sigc::bind</a>(&foo,1)(2,3); <span class="comment">//fixes the last (third) argument and calls foo(2,3,1)</span> <a class="code" href="group__bind.html#ga2148290d2cf9c1961ec157a085badd5a" title="Creates an adaptor of type sigc::bind_functor which binds the passed argument to the passed functor...">sigc::bind</a><-1>(&foo,1)(2,3); <span class="comment">//same as bind(&foo,1)(2,3) (calls foo(2,3,1))</span> sigc::bind<0>(&foo,1)(2,3); <span class="comment">//fixes the first argument and calls foo(1,2,3)</span> sigc::bind<1>(&foo,1)(2,3); <span class="comment">//fixes the second argument and calls foo(2,1,3)</span> sigc::bind<2>(&foo,1)(2,3); <span class="comment">//fixes the third argument and calls foo(2,3,1)</span> <span class="comment">// multi argument binding ...</span> <a class="code" href="group__bind.html#ga2148290d2cf9c1961ec157a085badd5a" title="Creates an adaptor of type sigc::bind_functor which binds the passed argument to the passed functor...">sigc::bind</a>(&foo,1,2)(3); <span class="comment">//fixes the last two arguments and calls foo(3,1,2)</span> <a class="code" href="group__bind.html#ga2148290d2cf9c1961ec157a085badd5a" title="Creates an adaptor of type sigc::bind_functor which binds the passed argument to the passed functor...">sigc::bind</a>(&foo,1,2,3)(); <span class="comment">//fixes all three arguments and calls foo(1,2,3)</span> </pre></div></dd></dl> <p>The functor sigc::bind() returns can be passed into <a class="el" href="classsigc_1_1signal7.html#adc55ac9b0f935fd87a67904022e03cb2" title="Add a slot to the list of slots.">sigc::signal::connect()</a> directly.</p> <dl class="user"><dt><b>Example:</b></dt><dd><div class="fragment"><pre class="fragment"> <a class="code" href="classsigc_1_1signal.html" title="Convenience wrapper for the numbered sigc::signal# templates.">sigc::signal<void></a> some_signal; <span class="keywordtype">void</span> foo(<span class="keywordtype">int</span>); some_signal.<a class="code" href="classsigc_1_1signal7.html#adc55ac9b0f935fd87a67904022e03cb2" title="Add a slot to the list of slots.">connect</a>(<a class="code" href="group__bind.html#ga2148290d2cf9c1961ec157a085badd5a" title="Creates an adaptor of type sigc::bind_functor which binds the passed argument to the passed functor...">sigc::bind</a>(&foo,1)); </pre></div></dd></dl> <p>sigc::bind_return() alters an arbitrary functor by fixing its return value to a certain value.</p> <dl class="user"><dt><b>Example:</b></dt><dd><div class="fragment"><pre class="fragment"> <span class="keywordtype">void</span> foo(); <a class="codeRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01134.html#aaf93fdf0812752e0e02c501dea1b38f0">std::cout</a> << <a class="code" href="group__bind.html#ga8a001b0bb588d2ac1af712781b89dc8a" title="Creates an adaptor of type sigc::bind_return_functor which fixes the return value of the passed funct...">sigc::bind_return</a>(&foo, 5)(); <span class="comment">// calls foo() and returns 5</span> </pre></div></dd></dl> <p>You can bind references to functors by passing the objects through the <a class="el" href="namespacesigc.html#ad6e63f1697c807728f518f21f69e1931" title="Creates a reference wrapper.">sigc::ref()</a> helper function.</p> <dl class="user"><dt><b>Example:</b></dt><dd><div class="fragment"><pre class="fragment"> <span class="keywordtype">int</span> some_int; <a class="code" href="classsigc_1_1signal.html" title="Convenience wrapper for the numbered sigc::signal# templates.">sigc::signal<void></a> some_signal; <span class="keywordtype">void</span> foo(<span class="keywordtype">int</span>&); some_signal.<a class="code" href="classsigc_1_1signal7.html#adc55ac9b0f935fd87a67904022e03cb2" title="Add a slot to the list of slots.">connect</a>(<a class="code" href="group__bind.html#ga2148290d2cf9c1961ec157a085badd5a" title="Creates an adaptor of type sigc::bind_functor which binds the passed argument to the passed functor...">sigc::bind</a>(&foo,<a class="code" href="namespacesigc.html#ad6e63f1697c807728f518f21f69e1931" title="Creates a reference wrapper.">sigc::ref</a>(some_int))); </pre></div></dd></dl> <p>If you bind an object of a <a class="el" href="structsigc_1_1trackable.html" title="Base class for objects with auto-disconnection.">sigc::trackable</a> derived type to a functor by reference, a slot assigned to the bind adaptor is cleared automatically when the object goes out of scope.</p> <dl class="user"><dt><b>Example:</b></dt><dd><div class="fragment"><pre class="fragment"> <span class="keyword">struct </span>bar : <span class="keyword">public</span> sigc::trackable {} some_bar; <a class="code" href="classsigc_1_1signal.html" title="Convenience wrapper for the numbered sigc::signal# templates.">sigc::signal<void></a> some_signal; <span class="keywordtype">void</span> foo(bar&); some_signal.<a class="code" href="classsigc_1_1signal7.html#adc55ac9b0f935fd87a67904022e03cb2" title="Add a slot to the list of slots.">connect</a>(<a class="code" href="group__bind.html#ga2148290d2cf9c1961ec157a085badd5a" title="Creates an adaptor of type sigc::bind_functor which binds the passed argument to the passed functor...">sigc::bind</a>(&foo,<a class="code" href="namespacesigc.html#ad6e63f1697c807728f518f21f69e1931" title="Creates a reference wrapper.">sigc::ref</a>(some_bar))); <span class="comment">// disconnected automatically if some_bar goes out of scope</span> </pre></div></dd></dl> <p>For a more powerful version of this functionality see the lambda library adaptor sigc::group() which can bind, hide and reorder arguments arbitrarily. Although sigc::group() is more flexible, sigc::bind() provides a means of binding parameters when the total number of parameters called is variable. </p> <hr/><h2>Function Documentation</h2> <a class="anchor" id="ga2148290d2cf9c1961ec157a085badd5a"></a><!-- doxytag: member="sigc::bind" ref="ga2148290d2cf9c1961ec157a085badd5a" args="(const T_functor &_A_func, T_bound1 _A_b1)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <int I_location, class T_bound1 , class T_functor > </div> <table class="memname"> <tr> <td class="memname">bind_functor<I_location, T_functor, T_bound1> sigc::bind </td> <td>(</td> <td class="paramtype">const T_functor & </td> <td class="paramname"> <em>_A_func</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_bound1 </td> <td class="paramname"> <em>_A_b1</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates an adaptor of type sigc::bind_functor which binds the passed argument to the passed functor. </p> <p>The optional template argument <em>I_location</em> specifies the zero-based position of the argument to be fixed (<code>-1</code> stands for the last argument).</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_func</td><td>Functor that should be wrapped. </td></tr> <tr><td class="paramname">_A_b1</td><td>Argument to bind to <em>_A_func</em>. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Adaptor that executes <em>_A_func</em> with the bound argument on invokation. </dd></dl> </div> </div> <a class="anchor" id="ga5858818e62c9df7ded906d9461d012cd"></a><!-- doxytag: member="sigc::bind" ref="ga5858818e62c9df7ded906d9461d012cd" args="(const T_functor &_A_func, T_type1 _A_b1)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_type1 , class T_functor > </div> <table class="memname"> <tr> <td class="memname">bind_functor<-1, T_functor, T_type1> sigc::bind </td> <td>(</td> <td class="paramtype">const T_functor & </td> <td class="paramname"> <em>_A_func</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type1 </td> <td class="paramname"> <em>_A_b1</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates an adaptor of type sigc::bind_functor which fixes the last 1 argument(s) of the passed functor. </p> <p>This function overload fixes the last 1 argument(s) of <em>_A_func</em>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_func</td><td>Functor that should be wrapped. </td></tr> <tr><td class="paramname">_A_b1</td><td>Argument to bind to <em>_A_func</em>. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Adaptor that executes _A_func with the bound argument on invokation. </dd></dl> </div> </div> <a class="anchor" id="ga356da93520385d48f66125257d2b8f2b"></a><!-- doxytag: member="sigc::bind" ref="ga356da93520385d48f66125257d2b8f2b" args="(const T_functor &_A_func, T_type1 _A_b1, T_type2 _A_b2, T_type3 _A_b3, T_type4 _A_b4, T_type5 _A_b5, T_type6 _A_b6, T_type7 _A_b7)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_type5 , class T_type6 , class T_type7 , class T_functor > </div> <table class="memname"> <tr> <td class="memname">bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, T_type6, T_type7> sigc::bind </td> <td>(</td> <td class="paramtype">const T_functor & </td> <td class="paramname"> <em>_A_func</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type1 </td> <td class="paramname"> <em>_A_b1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type2 </td> <td class="paramname"> <em>_A_b2</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type3 </td> <td class="paramname"> <em>_A_b3</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type4 </td> <td class="paramname"> <em>_A_b4</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type5 </td> <td class="paramname"> <em>_A_b5</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type6 </td> <td class="paramname"> <em>_A_b6</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type7 </td> <td class="paramname"> <em>_A_b7</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates an adaptor of type sigc::bind_functor which fixes the last 7 argument(s) of the passed functor. </p> <p>This function overload fixes the last 7 argument(s) of <em>_A_func</em>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_func</td><td>Functor that should be wrapped. </td></tr> <tr><td class="paramname">_A_b1</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b2</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b3</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b4</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b5</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b6</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b7</td><td>Argument to bind to <em>_A_func</em>. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Adaptor that executes _A_func with the bound argument on invokation. </dd></dl> </div> </div> <a class="anchor" id="ga68057ec737e31fa433a0a5f726f27cd1"></a><!-- doxytag: member="sigc::bind" ref="ga68057ec737e31fa433a0a5f726f27cd1" args="(const T_functor &_A_func, T_type1 _A_b1, T_type2 _A_b2)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_type1 , class T_type2 , class T_functor > </div> <table class="memname"> <tr> <td class="memname">bind_functor<-1, T_functor, T_type1, T_type2> sigc::bind </td> <td>(</td> <td class="paramtype">const T_functor & </td> <td class="paramname"> <em>_A_func</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type1 </td> <td class="paramname"> <em>_A_b1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type2 </td> <td class="paramname"> <em>_A_b2</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates an adaptor of type sigc::bind_functor which fixes the last 2 argument(s) of the passed functor. </p> <p>This function overload fixes the last 2 argument(s) of <em>_A_func</em>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_func</td><td>Functor that should be wrapped. </td></tr> <tr><td class="paramname">_A_b1</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b2</td><td>Argument to bind to <em>_A_func</em>. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Adaptor that executes _A_func with the bound argument on invokation. </dd></dl> </div> </div> <a class="anchor" id="ga7f4b6bd72965b7840fa5b518e0d069c1"></a><!-- doxytag: member="sigc::bind" ref="ga7f4b6bd72965b7840fa5b518e0d069c1" args="(const T_functor &_A_func, T_type1 _A_b1, T_type2 _A_b2, T_type3 _A_b3, T_type4 _A_b4, T_type5 _A_b5, T_type6 _A_b6)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_type5 , class T_type6 , class T_functor > </div> <table class="memname"> <tr> <td class="memname">bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, T_type6> sigc::bind </td> <td>(</td> <td class="paramtype">const T_functor & </td> <td class="paramname"> <em>_A_func</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type1 </td> <td class="paramname"> <em>_A_b1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type2 </td> <td class="paramname"> <em>_A_b2</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type3 </td> <td class="paramname"> <em>_A_b3</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type4 </td> <td class="paramname"> <em>_A_b4</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type5 </td> <td class="paramname"> <em>_A_b5</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type6 </td> <td class="paramname"> <em>_A_b6</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates an adaptor of type sigc::bind_functor which fixes the last 6 argument(s) of the passed functor. </p> <p>This function overload fixes the last 6 argument(s) of <em>_A_func</em>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_func</td><td>Functor that should be wrapped. </td></tr> <tr><td class="paramname">_A_b1</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b2</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b3</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b4</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b5</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b6</td><td>Argument to bind to <em>_A_func</em>. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Adaptor that executes _A_func with the bound argument on invokation. </dd></dl> </div> </div> <a class="anchor" id="ga006c34f47e2a19358be290d438c0de19"></a><!-- doxytag: member="sigc::bind" ref="ga006c34f47e2a19358be290d438c0de19" args="(const T_functor &_A_func, T_type1 _A_b1, T_type2 _A_b2, T_type3 _A_b3)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_type1 , class T_type2 , class T_type3 , class T_functor > </div> <table class="memname"> <tr> <td class="memname">bind_functor<-1, T_functor, T_type1, T_type2, T_type3> sigc::bind </td> <td>(</td> <td class="paramtype">const T_functor & </td> <td class="paramname"> <em>_A_func</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type1 </td> <td class="paramname"> <em>_A_b1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type2 </td> <td class="paramname"> <em>_A_b2</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type3 </td> <td class="paramname"> <em>_A_b3</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates an adaptor of type sigc::bind_functor which fixes the last 3 argument(s) of the passed functor. </p> <p>This function overload fixes the last 3 argument(s) of <em>_A_func</em>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_func</td><td>Functor that should be wrapped. </td></tr> <tr><td class="paramname">_A_b1</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b2</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b3</td><td>Argument to bind to <em>_A_func</em>. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Adaptor that executes _A_func with the bound argument on invokation. </dd></dl> </div> </div> <a class="anchor" id="gaafb060da662d2ab98bf377c16a5df8f4"></a><!-- doxytag: member="sigc::bind" ref="gaafb060da662d2ab98bf377c16a5df8f4" args="(const T_functor &_A_func, T_type1 _A_b1, T_type2 _A_b2, T_type3 _A_b3, T_type4 _A_b4)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_functor > </div> <table class="memname"> <tr> <td class="memname">bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4> sigc::bind </td> <td>(</td> <td class="paramtype">const T_functor & </td> <td class="paramname"> <em>_A_func</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type1 </td> <td class="paramname"> <em>_A_b1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type2 </td> <td class="paramname"> <em>_A_b2</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type3 </td> <td class="paramname"> <em>_A_b3</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type4 </td> <td class="paramname"> <em>_A_b4</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates an adaptor of type sigc::bind_functor which fixes the last 4 argument(s) of the passed functor. </p> <p>This function overload fixes the last 4 argument(s) of <em>_A_func</em>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_func</td><td>Functor that should be wrapped. </td></tr> <tr><td class="paramname">_A_b1</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b2</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b3</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b4</td><td>Argument to bind to <em>_A_func</em>. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Adaptor that executes _A_func with the bound argument on invokation. </dd></dl> </div> </div> <a class="anchor" id="gae20edab579c98fecb975a5cc698d8ab2"></a><!-- doxytag: member="sigc::bind" ref="gae20edab579c98fecb975a5cc698d8ab2" args="(const T_functor &_A_func, T_type1 _A_b1, T_type2 _A_b2, T_type3 _A_b3, T_type4 _A_b4, T_type5 _A_b5)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_type5 , class T_functor > </div> <table class="memname"> <tr> <td class="memname">bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5> sigc::bind </td> <td>(</td> <td class="paramtype">const T_functor & </td> <td class="paramname"> <em>_A_func</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type1 </td> <td class="paramname"> <em>_A_b1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type2 </td> <td class="paramname"> <em>_A_b2</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type3 </td> <td class="paramname"> <em>_A_b3</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type4 </td> <td class="paramname"> <em>_A_b4</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_type5 </td> <td class="paramname"> <em>_A_b5</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates an adaptor of type sigc::bind_functor which fixes the last 5 argument(s) of the passed functor. </p> <p>This function overload fixes the last 5 argument(s) of <em>_A_func</em>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_func</td><td>Functor that should be wrapped. </td></tr> <tr><td class="paramname">_A_b1</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b2</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b3</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b4</td><td>Argument to bind to <em>_A_func</em>. </td></tr> <tr><td class="paramname">_A_b5</td><td>Argument to bind to <em>_A_func</em>. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Adaptor that executes _A_func with the bound argument on invokation. </dd></dl> </div> </div> <a class="anchor" id="ga8a001b0bb588d2ac1af712781b89dc8a"></a><!-- doxytag: member="sigc::bind_return" ref="ga8a001b0bb588d2ac1af712781b89dc8a" args="(const T_functor &_A_functor, T_return _A_ret_value)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_return , class T_functor > </div> <table class="memname"> <tr> <td class="memname">bind_return_functor<T_return, T_functor> sigc::bind_return </td> <td>(</td> <td class="paramtype">const T_functor & </td> <td class="paramname"> <em>_A_functor</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">T_return </td> <td class="paramname"> <em>_A_ret_value</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates an adaptor of type <a class="el" href="structsigc_1_1bind__return__functor.html" title="Adaptor that fixes the return value of the wrapped functor.">sigc::bind_return_functor</a> which fixes the return value of the passed functor to the passed argument. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">_A_functor</td><td>Functor that should be wrapped. </td></tr> <tr><td class="paramname">_A_ret_value</td><td>Argument to fix the return value of <em>_A_functor</em> to. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Adaptor that executes <em>_A_functor</em> on invokation and returns <em>_A_ret_value</em>. </dd></dl> </div> </div> <a class="anchor" id="gaa60aa29a584517ad422473281ce2864b"></a><!-- doxytag: member="sigc::visit_each" ref="gaa60aa29a584517ad422473281ce2864b" args="(const T_action &_A_action, const bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4 > &_A_target)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_action , class T_functor , class T_type1 , class T_type2 , class T_type3 , class T_type4 > </div> <table class="memname"> <tr> <td class="memname">void sigc::visit_each </td> <td>(</td> <td class="paramtype">const T_action & </td> <td class="paramname"> <em>_A_action</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4 > & </td> <td class="paramname"> <em>_A_target</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Performs a functor on each of the targets of a functor. </p> <p>The function overload for sigc::bind_functor performs a functor on the functor and on the object instances stored in the sigc::bind_functor object. </p> </div> </div> <a class="anchor" id="gab9bc9f3ffe4a706128948eb00751eadc"></a><!-- doxytag: member="sigc::visit_each" ref="gab9bc9f3ffe4a706128948eb00751eadc" args="(const T_action &_A_action, const bind_functor<-1, T_functor, T_type1, T_type2, T_type3 > &_A_target)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_action , class T_functor , class T_type1 , class T_type2 , class T_type3 > </div> <table class="memname"> <tr> <td class="memname">void sigc::visit_each </td> <td>(</td> <td class="paramtype">const T_action & </td> <td class="paramname"> <em>_A_action</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const bind_functor<-1, T_functor, T_type1, T_type2, T_type3 > & </td> <td class="paramname"> <em>_A_target</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Performs a functor on each of the targets of a functor. </p> <p>The function overload for sigc::bind_functor performs a functor on the functor and on the object instances stored in the sigc::bind_functor object. </p> </div> </div> <a class="anchor" id="ga97d5feac063beaf49157990f98aad6fe"></a><!-- doxytag: member="sigc::visit_each" ref="ga97d5feac063beaf49157990f98aad6fe" args="(const T_action &_A_action, const bind_functor<-1, T_functor, T_type1 > &_A_target)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_action , class T_functor , class T_type1 > </div> <table class="memname"> <tr> <td class="memname">void sigc::visit_each </td> <td>(</td> <td class="paramtype">const T_action & </td> <td class="paramname"> <em>_A_action</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const bind_functor<-1, T_functor, T_type1 > & </td> <td class="paramname"> <em>_A_target</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Performs a functor on each of the targets of a functor. </p> <p>The function overload for sigc::bind_functor performs a functor on the functor and on the object instances stored in the sigc::bind_functor object. </p> </div> </div> <a class="anchor" id="gaca2e99785599f7631337d5fbbecbc610"></a><!-- doxytag: member="sigc::visit_each" ref="gaca2e99785599f7631337d5fbbecbc610" args="(const T_action &_A_action, const bind_functor<-1, T_functor, T_type1, T_type2 > &_A_target)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_action , class T_functor , class T_type1 , class T_type2 > </div> <table class="memname"> <tr> <td class="memname">void sigc::visit_each </td> <td>(</td> <td class="paramtype">const T_action & </td> <td class="paramname"> <em>_A_action</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const bind_functor<-1, T_functor, T_type1, T_type2 > & </td> <td class="paramname"> <em>_A_target</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Performs a functor on each of the targets of a functor. </p> <p>The function overload for sigc::bind_functor performs a functor on the functor and on the object instances stored in the sigc::bind_functor object. </p> </div> </div> <a class="anchor" id="ga5017f20f5c99a9a1007476a397e6b0af"></a><!-- doxytag: member="sigc::visit_each" ref="ga5017f20f5c99a9a1007476a397e6b0af" args="(const T_action &_A_action, const bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, T_type6 > &_A_target)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_action , class T_functor , class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_type5 , class T_type6 > </div> <table class="memname"> <tr> <td class="memname">void sigc::visit_each </td> <td>(</td> <td class="paramtype">const T_action & </td> <td class="paramname"> <em>_A_action</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, T_type6 > & </td> <td class="paramname"> <em>_A_target</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Performs a functor on each of the targets of a functor. </p> <p>The function overload for sigc::bind_functor performs a functor on the functor and on the object instances stored in the sigc::bind_functor object. </p> </div> </div> <a class="anchor" id="ga27e8bea76ba380b8223b059369b2c485"></a><!-- doxytag: member="sigc::visit_each" ref="ga27e8bea76ba380b8223b059369b2c485" args="(const T_action &_A_action, const bind_return_functor< T_return, T_functor > &_A_target)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_action , class T_return , class T_functor > </div> <table class="memname"> <tr> <td class="memname">void sigc::visit_each </td> <td>(</td> <td class="paramtype">const T_action & </td> <td class="paramname"> <em>_A_action</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const bind_return_functor< T_return, T_functor > & </td> <td class="paramname"> <em>_A_target</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Performs a functor on each of the targets of a functor. </p> <p>The function overload for <a class="el" href="structsigc_1_1bind__return__functor.html" title="Adaptor that fixes the return value of the wrapped functor.">sigc::bind_return_functor</a> performs a functor on the functor and on the object instance stored in the <a class="el" href="structsigc_1_1bind__return__functor.html" title="Adaptor that fixes the return value of the wrapped functor.">sigc::bind_return_functor</a> object. </p> </div> </div> <a class="anchor" id="gab7f865e06297273a2b5d80b7d7865bdb"></a><!-- doxytag: member="sigc::visit_each" ref="gab7f865e06297273a2b5d80b7d7865bdb" args="(const T_action &_A_action, const bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, T_type6, T_type7 > &_A_target)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_action , class T_functor , class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_type5 , class T_type6 , class T_type7 > </div> <table class="memname"> <tr> <td class="memname">void sigc::visit_each </td> <td>(</td> <td class="paramtype">const T_action & </td> <td class="paramname"> <em>_A_action</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5, T_type6, T_type7 > & </td> <td class="paramname"> <em>_A_target</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Performs a functor on each of the targets of a functor. </p> <p>The function overload for sigc::bind_functor performs a functor on the functor and on the object instances stored in the sigc::bind_functor object. </p> </div> </div> <a class="anchor" id="ga5237d6d834423536367bf130760e88b3"></a><!-- doxytag: member="sigc::visit_each" ref="ga5237d6d834423536367bf130760e88b3" args="(const T_action &_A_action, const bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5 > &_A_target)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_action , class T_functor , class T_type1 , class T_type2 , class T_type3 , class T_type4 , class T_type5 > </div> <table class="memname"> <tr> <td class="memname">void sigc::visit_each </td> <td>(</td> <td class="paramtype">const T_action & </td> <td class="paramname"> <em>_A_action</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const bind_functor<-1, T_functor, T_type1, T_type2, T_type3, T_type4, T_type5 > & </td> <td class="paramname"> <em>_A_target</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Performs a functor on each of the targets of a functor. </p> <p>The function overload for sigc::bind_functor performs a functor on the functor and on the object instances stored in the sigc::bind_functor object. </p> </div> </div> <a class="anchor" id="gaed4a6aaa9d804f82fd558d553b67c3a8"></a><!-- doxytag: member="sigc::visit_each" ref="gaed4a6aaa9d804f82fd558d553b67c3a8" args="(const T_action &_A_action, const bind_functor< T_loc, T_functor, T_bound > &_A_target)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template <class T_action , int T_loc, class T_functor , class T_bound > </div> <table class="memname"> <tr> <td class="memname">void sigc::visit_each </td> <td>(</td> <td class="paramtype">const T_action & </td> <td class="paramname"> <em>_A_action</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const bind_functor< T_loc, T_functor, T_bound > & </td> <td class="paramname"> <em>_A_target</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Performs a functor on each of the targets of a functor. </p> <p>The function overload for sigc::bind_functor performs a functor on the functor and on the object instances stored in the sigc::bind_functor object. </p> </div> </div> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Mar 8 2011 11:44:40 for libsigc++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address> </body> </html>