libsigcplusplus/docs/reference/html/structsigc_1_1functor__trai...

126 lines
6.9 KiB
HTML

<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>libsigc++: sigc::functor_trait&lt; T_functor, I_derives_functor_base, I_can_use_decltype &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-extra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">libsigc++
&#160;<span id="projectnumber">2.10.3</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</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 id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacesigc.html">sigc</a></li><li class="navelem"><a class="el" href="structsigc_1_1functor__trait.html">functor_trait</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="structsigc_1_1functor__trait-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">sigc::functor_trait&lt; T_functor, I_derives_functor_base, I_can_use_decltype &gt; Struct Template Reference<div class="ingroups"><a class="el" href="group__sigcfunctors.html">Functors</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>Trait that specifies the return type of any type.
<a href="structsigc_1_1functor__trait.html#details">More...</a></p>
<p><code>#include &lt;sigc++/functors/functor_trait.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ac779b3d3d04e78d57b6b2ae4545b1667"><td class="memItemLeft" align="right" valign="top">typedef T_functor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1functor__trait.html#ac779b3d3d04e78d57b6b2ae4545b1667">functor_type</a></td></tr>
<tr class="separator:ac779b3d3d04e78d57b6b2ae4545b1667"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1324bf0d3cec3d1f2e39e932b228d6d"><td class="memItemLeft" align="right" valign="top">typedef void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsigc_1_1functor__trait.html#af1324bf0d3cec3d1f2e39e932b228d6d">result_type</a></td></tr>
<tr class="separator:af1324bf0d3cec3d1f2e39e932b228d6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class T_functor, bool I_derives_functor_base = std::is_base_of&lt;functor_base,T_functor&gt;::value, bool I_can_use_decltype = can_deduce_result_type_with_decltype&lt;T_functor&gt;::value&gt;<br />
struct sigc::functor_trait&lt; T_functor, I_derives_functor_base, I_can_use_decltype &gt;</h3>
<p>Trait that specifies the return type of any type. </p>
<p>Template specializations for functors derived from <a class="el" href="structsigc_1_1functor__base.html" title="A hint to the compiler. ">sigc::functor_base</a>, for other functors whose result type can be deduced with decltype(), for function pointers and for class methods are provided.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T_functor</td><td>Functor type. </td></tr>
<tr><td class="paramname">I_derives_functor_base</td><td>Whether <code>T_functor</code> inherits from <a class="el" href="structsigc_1_1functor__base.html" title="A hint to the compiler. ">sigc::functor_base</a>. </td></tr>
<tr><td class="paramname">I_can_use_decltype</td><td>Whether the result type of <code>T_functor</code> can be deduced with decltype(). </td></tr>
</table>
</dd>
</dl>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="ac779b3d3d04e78d57b6b2ae4545b1667"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template &lt;class T_functor, bool I_derives_functor_base = std::is_base_of&lt;functor_base,T_functor&gt;::value, bool I_can_use_decltype = can_deduce_result_type_with_decltype&lt;T_functor&gt;::value&gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef T_functor <a class="el" href="structsigc_1_1functor__trait.html">sigc::functor_trait</a>&lt; T_functor, I_derives_functor_base, I_can_use_decltype &gt;::<a class="el" href="structsigc_1_1functor__trait.html#ac779b3d3d04e78d57b6b2ae4545b1667">functor_type</a></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="af1324bf0d3cec3d1f2e39e932b228d6d"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template &lt;class T_functor, bool I_derives_functor_base = std::is_base_of&lt;functor_base,T_functor&gt;::value, bool I_can_use_decltype = can_deduce_result_type_with_decltype&lt;T_functor&gt;::value&gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef void <a class="el" href="structsigc_1_1functor__trait.html">sigc::functor_trait</a>&lt; T_functor, I_derives_functor_base, I_can_use_decltype &gt;::<a class="el" href="structsigc_1_1functor__trait.html#af1324bf0d3cec3d1f2e39e932b228d6d">result_type</a></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Mar 25 2020 10:13:29 for libsigc++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>