<divxmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision"class="refsynopsisdiv"><preclass="synopsis"><spanclass="comment">// In header: <<aclass="link"href="../reference.html#header.boost.functional.overloaded_function_hpp"title="Header <boost/functional/overloaded_function.hpp>">boost/functional/overloaded_function.hpp</a>>
<p>This function template creates and returns an <codeclass="computeroutput"><codeclass="computeroutput"><aclass="link"href="overloaded_function.html"title="Class template overloaded_function">overloaded_function</a></code></code> object that overloads all the specified functions <codeclass="computeroutput">f1</code>, <codeclass="computeroutput">f2</code>, etc.</p>
<p>The function types are internally determined from the template parameter types so they do not need to be explicitly specified. Therefore, this function template usually has a more concise syntax when compared with <codeclass="computeroutput"><codeclass="computeroutput"><aclass="link"href="overloaded_function.html"title="Class template overloaded_function">overloaded_function</a></code></code>. This is especially useful when the explicit type of the returned <codeclass="computeroutput"><codeclass="computeroutput"><aclass="link"href="overloaded_function.html"title="Class template overloaded_function">overloaded_function</a></code></code> object does not need to be known (e.g., when used with Boost.Typeof's <codeclass="computeroutput">BOOST_AUTO</code>, C++11 <codeclass="computeroutput">auto</code>, or when the overloaded function object is handled using a function template parameter, see the <aclass="link"href="../boost_functional_overloadedfunction/tutorial.html"title="Tutorial"> Tutorial</a> section).</p>
<p>The maximum number of functions to overload is given by the <codeclass="computeroutput"><codeclass="computeroutput"><aclass="link"href="../BOOST_FUNCTIONAL_O_1_7_3_3.html"title="Macro BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX">BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX</a></code></code> configuration macro.</p>
<p><spanclass="bold"><strong>Note:</strong></span> In this documentation, <codeclass="computeroutput">__function_type__</code> is a placeholder for a symbol that is specific to the implementation of this library.</p>