<!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.3"/> <title>libstdc++: std::binary_function< _Arg1, _Arg2, _Result > 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="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="doxygen.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 style="padding-left: 0.5em;"> <div id="projectname">libstdc++ </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.3 --> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('a00435.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="a02767.html">List of all members</a> </div> <div class="headertitle"> <div class="title">std::binary_function< _Arg1, _Arg2, _Result > Struct Template Reference<div class="ingroups"><a class="el" href="a01657.html">Function Objects</a></div></div> </div> </div><!--header--> <div class="contents"> <div class="dynheader"> Inheritance diagram for std::binary_function< _Arg1, _Arg2, _Result >:</div> <div class="dyncontent"> <div class="center"><img src="a02768.png" border="0" usemap="#std_1_1binary__function_3_01___arg1_00_01___arg2_00_01___result_01_4_inherit__map" alt="Inheritance graph"/></div> <map name="std_1_1binary__function_3_01___arg1_00_01___arg2_00_01___result_01_4_inherit__map" id="std_1_1binary__function_3_01___arg1_00_01___arg2_00_01___result_01_4_inherit__map"> <area shape="rect" id="node3" href="a00876.html" title="One of the adaptors for function pointers." alt="" coords="401,27,559,79"/><area shape="rect" id="node5" href="a00435.html" title="std::binary_function\l\< _Arg1, _Arg2, _Arg2 \>" alt="" coords="403,103,557,142"/><area shape="rect" id="node7" href="a00435.html" title="std::binary_function\l\< _Tp, _Tp, _Tp \>" alt="" coords="416,166,544,205"/><area shape="rect" id="node19" href="a00435.html" title="std::binary_function\l\< _T1, _T2, _Res \>" alt="" coords="416,258,544,297"/><area shape="rect" id="node23" href="a00435.html" title="std::binary_function\l\< _T1, _T2, bool \>" alt="" coords="416,322,544,361"/><area shape="rect" id="node33" href="a00435.html" title="std::binary_function\l\< __shared_ptr\< _Tp,\l _Lp \>, __shared_ptr\<\l _Tp, _Lp \>, bool \>" alt="" coords="409,385,551,450"/><area shape="rect" id="node35" href="a00435.html" title="std::binary_function\l\< const volatile _T1\l *, _T2, _Res \>" alt="" coords="416,474,544,526"/><area shape="rect" id="node37" href="a00435.html" title="std::binary_function\l\< rope\< _CharT, _Alloc\l \>, rope\< _CharT, _Alloc\l \>, rope\< _CharT, _Alloc \> \>" alt="" coords="393,550,567,615"/><area shape="rect" id="node39" href="a00435.html" title="std::binary_function\l\< _Tp1, _Tp2, _Result \>" alt="" coords="404,639,556,678"/><area shape="rect" id="node45" href="a00435.html" title="std::binary_function\l\< const _T1 *, _T2, _Res \>" alt="" coords="397,702,563,741"/><area shape="rect" id="node47" href="a00435.html" title="std::binary_function\l\< _Sp, _Sp, bool \>" alt="" coords="416,765,544,803"/><area shape="rect" id="node49" href="a00435.html" title="std::binary_function\l\< _Tp, _Arg, _Ret \>" alt="" coords="416,827,544,866"/><area shape="rect" id="node55" href="a00435.html" title="std::binary_function\l\< const _Tp *, _Arg,\l _Ret \>" alt="" coords="416,890,544,942"/><area shape="rect" id="node59" href="a00435.html" title="std::binary_function\l\< _T1 *, _T2, _Res \>" alt="" coords="413,966,547,1005"/><area shape="rect" id="node61" href="a00435.html" title="std::binary_function\l\< std::pair\< _T1, _T2\l \>, std::pair\< _T1, _T2\l \>, bool \>" alt="" coords="411,1029,549,1094"/><area shape="rect" id="node65" href="a00435.html" title="std::binary_function\l\< __weak_ptr\< _Tp, _Lp\l \>, __weak_ptr\< _Tp, _Lp\l \>, bool \>" alt="" coords="400,1118,560,1183"/><area shape="rect" id="node67" href="a00435.html" title="std::binary_function\l\< _Tp, _Tp, bool \>" alt="" coords="416,1207,544,1246"/><area shape="rect" id="node85" href="a00435.html" title="std::binary_function\l\< value_type, value_type,\l bool \>" alt="" coords="399,1270,561,1322"/><area shape="rect" id="node87" href="a00435.html" title="std::binary_function\l\< _Predicate::first_argument\l_type, _Predicate::second\l_argument_type, bool \>" alt="" coords="393,1346,567,1411"/><area shape="rect" id="node89" href="a00435.html" title="std::binary_function\l\< volatile _T1 *, _T2,\l _Res \>" alt="" coords="413,1435,547,1487"/><area shape="rect" id="node91" href="a00435.html" title="std::binary_function\l\< shared_ptr\< _Tp \>,\l shared_ptr\< _Tp \>, bool \>" alt="" coords="397,1511,563,1563"/><area shape="rect" id="node93" href="a00435.html" title="std::binary_function\l\< _Arg1, _Arg2, _Arg1 \>" alt="" coords="403,1587,557,1626"/><area shape="rect" id="node95" href="a00435.html" title="std::binary_function\l\< weak_ptr\< _Tp \>, weak\l_ptr\< _Tp \>, bool \>" alt="" coords="401,1650,559,1702"/><area shape="rect" id="node97" href="a00435.html" title="std::binary_function\l\< _Tp *, _Arg, _Ret \>" alt="" coords="413,1726,547,1765"/><area shape="rect" id="node9" href="a00650.html" title="One of the math functors." alt="" coords="657,5,781,30"/><area shape="rect" id="node11" href="a00821.html" title="One of the math functors." alt="" coords="659,54,778,79"/><area shape="rect" id="node13" href="a00822.html" title="One of the math functors." alt="" coords="653,103,785,129"/><area shape="rect" id="node15" href="a00830.html" title="One of the math functors." alt="" coords="650,153,787,178"/><area shape="rect" id="node17" href="a00875.html" title="One of the math functors." alt="" coords="665,202,773,227"/><area shape="rect" id="node21" href="a00520.html" title="Derives from binary_function, as appropriate." alt="" coords="641,251,796,303"/><area shape="rect" id="node25" href="a00127.html" title="Constructs predicate for equality from strict weak ordering predicate." alt="" coords="629,327,809,366"/><area shape="rect" id="node27" href="a00128.html" title="Similar to std::equal_to, but allows two different types." alt="" coords="637,390,801,429"/><area shape="rect" id="node29" href="a00133.html" title="Similar to std::less, but allows two different types." alt="" coords="647,453,791,491"/><area shape="rect" id="node31" href="a00135.html" title="Compare __a pair of types lexicographically, descending." alt="" coords="619,515,819,554"/><area shape="rect" id="node41" href="a00151.html" title="Similar to std::multiplies, but allows two different types." alt="" coords="633,609,804,647"/><area shape="rect" id="node43" href="a00154.html" title="Similar to std::plus, but allows two different types." alt="" coords="643,671,795,710"/><area shape="rect" id="node51" href="a00629.html" title="One of the adaptors for member pointers." alt="" coords="639,767,798,806"/><area shape="rect" id="node53" href="a00814.html" title="One of the adaptors for member pointers." alt="" coords="652,830,785,869"/><area shape="rect" id="node57" href="a00630.html" title="One of the adaptors for member pointers." alt="" coords="649,897,788,935"/><area shape="rect" id="node63" href="a00134.html" title="Compare __a pair of types lexicographically, ascending." alt="" coords="621,990,816,1029"/><area shape="rect" id="node69" href="a00653.html" title="One of the comparison functors." alt="" coords="652,1053,785,1078"/><area shape="rect" id="node71" href="a00674.html" title="One of the comparison functors." alt="" coords="657,1102,781,1127"/><area shape="rect" id="node73" href="a00675.html" title="One of the comparison functors." alt="" coords="658,1151,779,1190"/><area shape="rect" id="node75" href="a00797.html" title="One of the comparison functors." alt="" coords="665,1214,772,1239"/><area shape="rect" id="node77" href="a00798.html" title="One of the comparison functors." alt="" coords="646,1263,791,1289"/><area shape="rect" id="node79" href="a00805.html" title="One of the Boolean operations functors." alt="" coords="644,1313,793,1338"/><area shape="rect" id="node81" href="a00807.html" title="One of the Boolean operations functors." alt="" coords="649,1362,788,1387"/><area shape="rect" id="node83" href="a00838.html" title="One of the comparison functors." alt="" coords="657,1411,780,1450"/></map> <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> <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:ad907337549df2e1a3c3dbca8e0693dba"><td class="memItemLeft" align="right" valign="top">typedef _Arg1 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00435.html#ad907337549df2e1a3c3dbca8e0693dba">first_argument_type</a></td></tr> <tr class="separator:ad907337549df2e1a3c3dbca8e0693dba"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5fe0082d5851e1be6383ad8d8493264e"><td class="memItemLeft" align="right" valign="top">typedef _Result </td><td class="memItemRight" valign="bottom"><a class="el" href="a00435.html#a5fe0082d5851e1be6383ad8d8493264e">result_type</a></td></tr> <tr class="separator:a5fe0082d5851e1be6383ad8d8493264e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aae0f69fe498930627177ff1f06d0ef9f"><td class="memItemLeft" align="right" valign="top">typedef _Arg2 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00435.html#aae0f69fe498930627177ff1f06d0ef9f">second_argument_type</a></td></tr> <tr class="separator:aae0f69fe498930627177ff1f06d0ef9f"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><h3>template<typename _Arg1, typename _Arg2, typename _Result><br/> struct std::binary_function< _Arg1, _Arg2, _Result ></h3> <p>This is one of the <a class="el" href="a01657.html">functor base classes</a>. </p> <p>Definition at line <a class="el" href="a01495_source.html#l00116">116</a> of file <a class="el" href="a01495_source.html">stl_function.h</a>.</p> </div><h2 class="groupheader">Member Typedef Documentation</h2> <a class="anchor" id="ad907337549df2e1a3c3dbca8e0693dba"></a> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename _Arg1, typename _Arg2, typename _Result> </div> <table class="memname"> <tr> <td class="memname">typedef _Arg1 <a class="el" href="a00435.html">std::binary_function</a>< _Arg1, _Arg2, _Result >::<a class="el" href="a00435.html#ad907337549df2e1a3c3dbca8e0693dba">first_argument_type</a></td> </tr> </table> </div><div class="memdoc"> <p><code>first_argument_type</code> is the type of the first argument </p> <p>Definition at line <a class="el" href="a01495_source.html#l00119">119</a> of file <a class="el" href="a01495_source.html">stl_function.h</a>.</p> </div> </div> <a class="anchor" id="a5fe0082d5851e1be6383ad8d8493264e"></a> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename _Arg1, typename _Arg2, typename _Result> </div> <table class="memname"> <tr> <td class="memname">typedef _Result <a class="el" href="a00435.html">std::binary_function</a>< _Arg1, _Arg2, _Result >::<a class="el" href="a00435.html#a5fe0082d5851e1be6383ad8d8493264e">result_type</a></td> </tr> </table> </div><div class="memdoc"> <p><code>result_type</code> is the return type </p> <p>Definition at line <a class="el" href="a01495_source.html#l00125">125</a> of file <a class="el" href="a01495_source.html">stl_function.h</a>.</p> </div> </div> <a class="anchor" id="aae0f69fe498930627177ff1f06d0ef9f"></a> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename _Arg1, typename _Arg2, typename _Result> </div> <table class="memname"> <tr> <td class="memname">typedef _Arg2 <a class="el" href="a00435.html">std::binary_function</a>< _Arg1, _Arg2, _Result >::<a class="el" href="a00435.html#aae0f69fe498930627177ff1f06d0ef9f">second_argument_type</a></td> </tr> </table> </div><div class="memdoc"> <p><code>second_argument_type</code> is the type of the second argument </p> <p>Definition at line <a class="el" href="a01495_source.html#l00122">122</a> of file <a class="el" href="a01495_source.html">stl_function.h</a>.</p> </div> </div> <hr/>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="a01495_source.html">stl_function.h</a></li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="a01604.html">std</a></li><li class="navelem"><a class="el" href="a00435.html">binary_function</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3 </li> </ul> </div> </body> </html>