diff --git a/overloaded_function/doc/html/BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX.html b/overloaded_function/doc/html/BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX.html index 7fb743f..e51036e 100644 --- a/overloaded_function/doc/html/BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX.html +++ b/overloaded_function/doc/html/BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX.html @@ -33,7 +33,7 @@ BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX
If this macro is left undefined by the user, it has a default value of 5 (increasing this number might increase compilation time). When specified by the user, this macro must be a non-negative integer number.
If this macro is left undefined by the user, it has a default value of 5 (increasing this number might increase compilation time). When defined by the user, this macro must be an integer number greater or equal than 2 (because at least two distinct functions need to be specified in order to define an overload).
This function template creates and returns an
function object that overloads all the specified functions overloaded_function
f1
, f2
, etc.
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
. This is especially useful when the explicit type of the returned overloaded_function
does not need to be known (e.g., when used with Boost.Typeof's overloaded_function
BOOST_AUTO
(or C++11 auto
) or when the overloaded function object is handled using a function template parameter, see the Tutorial section).
The maximum number of functions to overload is given by the
configuration macro.BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX
This function object aggregates together calls to functions of all the specified function types F1
, F2
, etc. The specified function types must have distinct parameters from one another and they must be in the following format (which is the Boost.Function preferred syntax):
result_type (argument1_type, argumgnet2_type, ...)@@ -55,27 +55,27 @@
The maximum number of functions to overload is given by the BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX
configuration macro. The maximum number of function parameters for each of the specified function types is given by the BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX
configuration macro.
See: Tutorial section, make_overloaded_function
, BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX
, BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX
, Boost.Function.
overloaded_function
public
construct/copy/destructoverloaded_function(const boost::function< F1 > &, +overloaded_function(const boost::function< F1 > &, const boost::function< F2 > &, ...);Construct the overloaded function object.Any function pointer, function reference, and monomorphic function object that can be converted to a
boost::function
function object can be specified as parameter.
overloaded_function
public member functionsoverloaded_function
public member functionsboost::function_traits< F1 >::result_type -operator()(typename boost::function_traits< F1 >::arg1_type, +operator()(typename boost::function_traits< F1 >::arg1_type, typename boost::function_traits< F1 >::arg2_type, ...) const;Call operator matching the signature of the function type specified as 1st template parameter.
This will in turn invoke the call operator of the 1st function passed to the constructor.
boost::function_traits< F2 >::result_type -operator()(typename boost::function_traits< F2 >::arg1_type, +operator()(typename boost::function_traits< F2 >::arg1_type, typename boost::function_traits< F2 >::arg2_type, ...) const;Call operator matching the signature of the function type specified as 2nd template parameter.
This will in turn invoke the call operator of the 2nd function passed to the constructor.
Note: Similar call operators are present for all specified function types F1
, F2
, etc (even if not exhaustively listed by this documentation).
@@ -121,9 +121,9 @@
BOOST_AUTO(identity, boost::make_overloaded_function( identity_s, identity_i, identity_d)); -BOOST_CHECK( identity("abc") == "abc" ); -BOOST_CHECK( identity(123) == 123 ); -BOOST_CHECK( identity(1.23) == 1.23 ); +BOOST_CHECK(identity("abc") == "abc"); +BOOST_CHECK(identity(123) == 123); +BOOST_CHECK(identity(1.23) == 1.23);
@@ -149,9 +149,9 @@
template<typename F> void check(F identity) { - BOOST_CHECK( identity("abc") == "abc" ); - BOOST_CHECK( identity(123) == 123 ); - BOOST_CHECK( identity(1.23) == 1.23 ); + BOOST_CHECK(identity("abc") == "abc"); + BOOST_CHECK(identity(123) == 123); + BOOST_CHECK(identity(1.23) == 1.23); }
diff --git a/overloaded_function/doc/html/index.html b/overloaded_function/doc/html/index.html index a2e0f0d..f900f8e 100644 --- a/overloaded_function/doc/html/index.html +++ b/overloaded_function/doc/html/index.html @@ -87,9 +87,9 @@
-
BOOST_CHECK( identity_s("abc") == "abc" ); -BOOST_CHECK( identity_i(123) == 123 ); -BOOST_CHECK( identity_d(1.23) == 1.23 ); +BOOST_CHECK(identity_s("abc") == "abc"); +BOOST_CHECK(identity_i(123) == 123); +BOOST_CHECK(identity_d(1.23) == 1.23);@@ -108,9 +108,9 @@ > identity(identity_s, identity_i, identity_d); // All calls via single `identity` function. -BOOST_CHECK( identity("abc") == "abc" ); -BOOST_CHECK( identity(123) == 123 ); -BOOST_CHECK( identity(1.23) == 1.23 ); +BOOST_CHECK(identity("abc") == "abc"); +BOOST_CHECK(identity(123) == 123); +BOOST_CHECK(identity(1.23) == 1.23);
@@ -133,7 +133,7 @@
Last revised: February 17, 2012 at 20:42:39 GMT |
+Last revised: February 20, 2012 at 20:10:59 GMT |