<!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++: sigc::deduce_result_type< T_functor, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7, I_derives_adaptor_base > Struct Template Reference</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 class="current"><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="namespacesigc.html">sigc</a> </li> <li><a class="el" href="structsigc_1_1deduce__result__type.html">deduce_result_type</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> </div> <div class="headertitle"> <h1>sigc::deduce_result_type< T_functor, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7, I_derives_adaptor_base > Struct Template Reference<br/> <small> [<a class="el" href="group__adaptors.html">Adaptors</a>]</small> </h1> </div> </div> <div class="contents"> <!-- doxytag: class="sigc::deduce_result_type" --> <p>Deduce the return type of a functor. <a href="#_details">More...</a></p> <p><code>#include <sigc++/adaptors/deduce_result_type.h></code></p> <p><a href="structsigc_1_1deduce__result__type-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97d97214974202d86af020af07b2e0c9"></a><!-- doxytag: member="sigc::deduce_result_type::type" ref="a97d97214974202d86af020af07b2e0c9" args="" --> typedef functor_trait<br class="typebreak"/> < T_functor >::result_type </td><td class="memItemRight" valign="bottom"><b>type</b></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <h3>template <class T_functor, class T_arg1 = void, class T_arg2 = void, class T_arg3 = void, class T_arg4 = void, class T_arg5 = void, class T_arg6 = void, class T_arg7 = void, bool I_derives_adaptor_base = is_base_and_derived<adaptor_base,T_functor>::value><br/> struct sigc::deduce_result_type< T_functor, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7, I_derives_adaptor_base ></h3> <p>Deduce the return type of a functor. </p> <p><code>typename deduce_result_type<functor_type, list of arg_types>::type</code> deduces a functor's result type if <code>functor_type</code> inherits from <a class="el" href="structsigc_1_1functor__base.html" title="A hint to the compiler.">sigc::functor_base</a> and defines <code>result_type</code> or if <code>functor_type</code> is actually a (member) function type. Multi-type functors are not supported.</p> <p>sigc++ adaptors use <code>typename deduce_result_type<functor_type, list of arg_types>::type</code> to determine the return type of their <code>templated operator()</code> overloads.</p> <p>Adaptors in turn define a nested template class <code><a class="el" href="structsigc_1_1deduce__result__type.html" title="Deduce the return type of a functor.">deduce_result_type</a></code> that is used by template specializations of the global <a class="el" href="structsigc_1_1deduce__result__type.html" title="Deduce the return type of a functor.">deduce_result_type</a> template to correctly deduce the return types of the adaptor's suitable <code>template operator()</code> overload. </p> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Mar 8 2011 11:44:42 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>