From 5f9b5bcfad7d0c2d24fd75090419cb31d534cf29 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 19 Dec 2017 17:48:18 +0000 Subject: [PATCH] Update paths for headers moved to different modules Makes it easier to see dependencies. --- factory/test/factory.cpp | 2 +- factory/test/factory_with_allocator.cpp | 2 +- factory/test/factory_with_none_t.cpp | 2 +- factory/test/value_factory.cpp | 2 +- forward/test/forward_adapter.cpp | 2 +- forward/test/lightweight_forward_adapter.cpp | 2 +- hash/test/hash_built_in_array_test.cpp | 2 +- hash/test/hash_complex_test.cpp | 2 +- hash/test/hash_custom_test.cpp | 2 +- hash/test/hash_deque_test.cpp | 2 +- hash/test/hash_enum_test.cpp | 2 +- hash/test/hash_float_test.hpp | 4 +-- hash/test/hash_friend_test.cpp | 2 +- hash/test/hash_function_pointer_test.cpp | 2 +- hash/test/hash_fwd_test_1.cpp | 2 +- hash/test/hash_fwd_test_2.cpp | 2 +- hash/test/hash_global_namespace_test.cpp | 2 +- hash/test/hash_list_test.cpp | 2 +- hash/test/hash_map_test.cpp | 2 +- hash/test/hash_no_ext_macro_1.cpp | 2 +- hash/test/hash_no_ext_macro_2.cpp | 2 +- hash/test/hash_number_test.cpp | 4 +-- hash/test/hash_pointer_test.cpp | 2 +- hash/test/hash_range_test.cpp | 2 +- hash/test/hash_set_test.cpp | 2 +- hash/test/hash_std_array_test.cpp | 2 +- hash/test/hash_std_smart_ptr_test.cpp | 2 +- hash/test/hash_std_tuple_test.cpp | 2 +- hash/test/hash_string_test.cpp | 2 +- hash/test/hash_type_index_test.cpp | 2 +- hash/test/hash_value_array_test.cpp | 2 +- hash/test/hash_vector_test.cpp | 2 +- hash/test/link_ext_test.cpp | 2 +- hash/test/link_no_ext_test.cpp | 2 +- include/boost/functional/forward_adapter.hpp | 2 +- .../functional/hash/detail/hash_float.hpp | 2 +- include/boost/functional/hash/extensions.hpp | 2 +- include/boost/functional/hash/hash.hpp | 2 +- include/boost/functional/hash/hash_fwd.hpp | 6 ++-- .../lightweight_forward_adapter.hpp | 2 +- .../html/boost/make_overloaded_function.html | 20 ++++++------ .../doc/html/boost/overloaded_function.html | 32 +++++++++---------- .../acknowledgments.html | 10 +++--- .../getting_started.html | 12 +++---- .../tutorial.html | 18 +++++------ overloaded_function/doc/html/index.html | 18 +++++------ overloaded_function/doc/html/reference.html | 14 ++++---- .../doc/overloaded_function.qbk | 4 +-- overloaded_function/test/functor.cpp | 2 +- overloaded_function/test/make_call.cpp | 2 +- overloaded_function/test/make_decl.cpp | 2 +- 51 files changed, 111 insertions(+), 111 deletions(-) diff --git a/factory/test/factory.cpp b/factory/test/factory.cpp index 6894481..ef895cf 100644 --- a/factory/test/factory.cpp +++ b/factory/test/factory.cpp @@ -7,7 +7,7 @@ ==============================================================================*/ #include -#include +#include #include diff --git a/factory/test/factory_with_allocator.cpp b/factory/test/factory_with_allocator.cpp index 35e8c16..c1eef65 100644 --- a/factory/test/factory_with_allocator.cpp +++ b/factory/test/factory_with_allocator.cpp @@ -7,7 +7,7 @@ ==============================================================================*/ #include -#include +#include #include #include diff --git a/factory/test/factory_with_none_t.cpp b/factory/test/factory_with_none_t.cpp index bdca2c2..e8a515a 100644 --- a/factory/test/factory_with_none_t.cpp +++ b/factory/test/factory_with_none_t.cpp @@ -7,7 +7,7 @@ ==============================================================================*/ #include -#include +#include #include #include diff --git a/factory/test/value_factory.cpp b/factory/test/value_factory.cpp index e63c9ec..331757d 100644 --- a/factory/test/value_factory.cpp +++ b/factory/test/value_factory.cpp @@ -7,7 +7,7 @@ ==============================================================================*/ #include -#include +#include class sum { diff --git a/forward/test/forward_adapter.cpp b/forward/test/forward_adapter.cpp index 09cef7e..0c5e0c3 100644 --- a/forward/test/forward_adapter.cpp +++ b/forward/test/forward_adapter.cpp @@ -12,7 +12,7 @@ # pragma warning(disable: 4244) // no conversion warnings, please #endif -#include +#include #include #include diff --git a/forward/test/lightweight_forward_adapter.cpp b/forward/test/lightweight_forward_adapter.cpp index dbd0f3f..b89c92a 100644 --- a/forward/test/lightweight_forward_adapter.cpp +++ b/forward/test/lightweight_forward_adapter.cpp @@ -12,7 +12,7 @@ # pragma warning(disable: 4244) // no conversion warnings, please #endif -#include +#include #include #include diff --git a/hash/test/hash_built_in_array_test.cpp b/hash/test/hash_built_in_array_test.cpp index e2dfe99..6d59500 100644 --- a/hash/test/hash_built_in_array_test.cpp +++ b/hash/test/hash_built_in_array_test.cpp @@ -13,7 +13,7 @@ # endif #endif -#include +#include #ifdef BOOST_HASH_TEST_EXTENSIONS diff --git a/hash/test/hash_complex_test.cpp b/hash/test/hash_complex_test.cpp index 88f3833..0b119dc 100644 --- a/hash/test/hash_complex_test.cpp +++ b/hash/test/hash_complex_test.cpp @@ -17,7 +17,7 @@ int main() {} # include #endif -#include +#include #if defined(BOOST_MSVC) #pragma warning(disable:4244) // conversion from 'unsigned long' to diff --git a/hash/test/hash_custom_test.cpp b/hash/test/hash_custom_test.cpp index 4f125ab..e942e49 100644 --- a/hash/test/hash_custom_test.cpp +++ b/hash/test/hash_custom_test.cpp @@ -49,7 +49,7 @@ namespace boost # endif #endif -#include +#include #ifdef BOOST_HASH_TEST_EXTENSIONS diff --git a/hash/test/hash_deque_test.cpp b/hash/test/hash_deque_test.cpp index 4d7f447..84c14a7 100644 --- a/hash/test/hash_deque_test.cpp +++ b/hash/test/hash_deque_test.cpp @@ -13,7 +13,7 @@ # endif #endif -#include +#include #ifdef BOOST_HASH_TEST_EXTENSIONS diff --git a/hash/test/hash_enum_test.cpp b/hash/test/hash_enum_test.cpp index 2872b43..ffcc255 100644 --- a/hash/test/hash_enum_test.cpp +++ b/hash/test/hash_enum_test.cpp @@ -11,7 +11,7 @@ # include #endif -#include +#include #include "./compile_time.hpp" namespace test { diff --git a/hash/test/hash_float_test.hpp b/hash/test/hash_float_test.hpp index 8c2a43a..793aab6 100644 --- a/hash/test/hash_float_test.hpp +++ b/hash/test/hash_float_test.hpp @@ -11,12 +11,12 @@ # include #endif -#include +#include #include #include #include -#include +#include #include diff --git a/hash/test/hash_friend_test.cpp b/hash/test/hash_friend_test.cpp index 4b75f8a..cfb6a2d 100644 --- a/hash/test/hash_friend_test.cpp +++ b/hash/test/hash_friend_test.cpp @@ -52,7 +52,7 @@ namespace boost # endif #endif -#include +#include #ifdef BOOST_HASH_TEST_EXTENSIONS diff --git a/hash/test/hash_function_pointer_test.cpp b/hash/test/hash_function_pointer_test.cpp index 50fedf7..5430c08 100644 --- a/hash/test/hash_function_pointer_test.cpp +++ b/hash/test/hash_function_pointer_test.cpp @@ -11,7 +11,7 @@ # include #endif -#include +#include #include "./compile_time.hpp" void void_func1() { static int x = 1; ++x; } diff --git a/hash/test/hash_fwd_test_1.cpp b/hash/test/hash_fwd_test_1.cpp index 68fdde2..572afe9 100644 --- a/hash/test/hash_fwd_test_1.cpp +++ b/hash/test/hash_fwd_test_1.cpp @@ -9,7 +9,7 @@ #include "./hash_fwd_test.hpp" -#include +#include #if defined(BOOST_HASH_TEST_EXTENSIONS) && !defined(BOOST_HASH_TEST_STD_INCLUDES) diff --git a/hash/test/hash_fwd_test_2.cpp b/hash/test/hash_fwd_test_2.cpp index d4c1a32..44f07c4 100644 --- a/hash/test/hash_fwd_test_2.cpp +++ b/hash/test/hash_fwd_test_2.cpp @@ -15,7 +15,7 @@ int main() {} #else #include "./hash_fwd_test.hpp" -#include +#include template void unused(T const&) {} diff --git a/hash/test/hash_global_namespace_test.cpp b/hash/test/hash_global_namespace_test.cpp index 7fc7bf6..dedcf3c 100644 --- a/hash/test/hash_global_namespace_test.cpp +++ b/hash/test/hash_global_namespace_test.cpp @@ -50,7 +50,7 @@ namespace boost # endif #endif -#include +#include #ifdef BOOST_HASH_TEST_EXTENSIONS diff --git a/hash/test/hash_list_test.cpp b/hash/test/hash_list_test.cpp index a0f9716..1aac304 100644 --- a/hash/test/hash_list_test.cpp +++ b/hash/test/hash_list_test.cpp @@ -13,7 +13,7 @@ # endif #endif -#include +#include #ifdef BOOST_HASH_TEST_EXTENSIONS diff --git a/hash/test/hash_map_test.cpp b/hash/test/hash_map_test.cpp index 01a7854..750aa64 100644 --- a/hash/test/hash_map_test.cpp +++ b/hash/test/hash_map_test.cpp @@ -13,7 +13,7 @@ # endif #endif -#include +#include #include diff --git a/hash/test/hash_no_ext_macro_1.cpp b/hash/test/hash_no_ext_macro_1.cpp index d69e5b5..9c0f2fd 100644 --- a/hash/test/hash_no_ext_macro_1.cpp +++ b/hash/test/hash_no_ext_macro_1.cpp @@ -18,7 +18,7 @@ # include #endif -#include +#include #include int main() diff --git a/hash/test/hash_no_ext_macro_2.cpp b/hash/test/hash_no_ext_macro_2.cpp index fe548ee..5e01e90 100644 --- a/hash/test/hash_no_ext_macro_2.cpp +++ b/hash/test/hash_no_ext_macro_2.cpp @@ -18,7 +18,7 @@ # include #endif -#include +#include #include int main() diff --git a/hash/test/hash_number_test.cpp b/hash/test/hash_number_test.cpp index 18756c3..2c36513 100644 --- a/hash/test/hash_number_test.cpp +++ b/hash/test/hash_number_test.cpp @@ -12,11 +12,11 @@ #endif #include -#include +#include #include #include -#include +#include #include "./compile_time.hpp" diff --git a/hash/test/hash_pointer_test.cpp b/hash/test/hash_pointer_test.cpp index 7cacaa8..b9e3f82 100644 --- a/hash/test/hash_pointer_test.cpp +++ b/hash/test/hash_pointer_test.cpp @@ -11,7 +11,7 @@ # include #endif -#include +#include #include #include "./compile_time.hpp" diff --git a/hash/test/hash_range_test.cpp b/hash/test/hash_range_test.cpp index a5bdbb6..68411de 100644 --- a/hash/test/hash_range_test.cpp +++ b/hash/test/hash_range_test.cpp @@ -17,7 +17,7 @@ int main() {} # include #endif -#include +#include #include #include diff --git a/hash/test/hash_set_test.cpp b/hash/test/hash_set_test.cpp index 1cf9fef..b7f0099 100644 --- a/hash/test/hash_set_test.cpp +++ b/hash/test/hash_set_test.cpp @@ -13,7 +13,7 @@ # endif #endif -#include +#include #ifdef BOOST_HASH_TEST_EXTENSIONS diff --git a/hash/test/hash_std_array_test.cpp b/hash/test/hash_std_array_test.cpp index 2b240a3..6c1c59d 100644 --- a/hash/test/hash_std_array_test.cpp +++ b/hash/test/hash_std_array_test.cpp @@ -14,7 +14,7 @@ #endif #include -#include +#include #if defined(BOOST_HASH_TEST_EXTENSIONS) && !defined(BOOST_NO_CXX11_HDR_ARRAY) #define TEST_ARRAY diff --git a/hash/test/hash_std_smart_ptr_test.cpp b/hash/test/hash_std_smart_ptr_test.cpp index feb09d9..80983c8 100644 --- a/hash/test/hash_std_smart_ptr_test.cpp +++ b/hash/test/hash_std_smart_ptr_test.cpp @@ -11,7 +11,7 @@ # include #endif -#include +#include #include "./compile_time.hpp" #if defined(BOOST_HASH_TEST_EXTENSIONS) && !defined(BOOST_NO_CXX11_SMART_PTR) diff --git a/hash/test/hash_std_tuple_test.cpp b/hash/test/hash_std_tuple_test.cpp index 97bea99..6c770dd 100644 --- a/hash/test/hash_std_tuple_test.cpp +++ b/hash/test/hash_std_tuple_test.cpp @@ -14,7 +14,7 @@ #endif #include -#include +#include #if defined(BOOST_HASH_TEST_EXTENSIONS) && !defined(BOOST_NO_CXX11_HDR_TUPLE) #define TEST_TUPLE diff --git a/hash/test/hash_string_test.cpp b/hash/test/hash_string_test.cpp index 7088d67..0d2c34e 100644 --- a/hash/test/hash_string_test.cpp +++ b/hash/test/hash_string_test.cpp @@ -11,7 +11,7 @@ # include #endif -#include +#include #include #include "./compile_time.hpp" diff --git a/hash/test/hash_type_index_test.cpp b/hash/test/hash_type_index_test.cpp index 3288a5b..767d866 100644 --- a/hash/test/hash_type_index_test.cpp +++ b/hash/test/hash_type_index_test.cpp @@ -11,7 +11,7 @@ # include #endif #include -#include +#include #if !defined(BOOST_NO_CXX11_HDR_TYPEINDEX) diff --git a/hash/test/hash_value_array_test.cpp b/hash/test/hash_value_array_test.cpp index 58fc447..1264072 100644 --- a/hash/test/hash_value_array_test.cpp +++ b/hash/test/hash_value_array_test.cpp @@ -16,7 +16,7 @@ # endif #endif -#include +#include #ifdef BOOST_HASH_TEST_EXTENSIONS diff --git a/hash/test/hash_vector_test.cpp b/hash/test/hash_vector_test.cpp index 6dcf3b0..e084e42 100644 --- a/hash/test/hash_vector_test.cpp +++ b/hash/test/hash_vector_test.cpp @@ -13,7 +13,7 @@ # endif #endif -#include +#include #ifdef BOOST_HASH_TEST_EXTENSIONS diff --git a/hash/test/link_ext_test.cpp b/hash/test/link_ext_test.cpp index 74a4eb5..915aa9b 100644 --- a/hash/test/link_ext_test.cpp +++ b/hash/test/link_ext_test.cpp @@ -7,7 +7,7 @@ #define BOOST_HASH_TEST_NAMESPACE boost #include -#include +#include #include int f(std::size_t hash1, int* x1) { diff --git a/hash/test/link_no_ext_test.cpp b/hash/test/link_no_ext_test.cpp index 75cd47d..91472e2 100644 --- a/hash/test/link_no_ext_test.cpp +++ b/hash/test/link_no_ext_test.cpp @@ -8,7 +8,7 @@ #define BOOST_HASH_TEST_NAMESPACE boost #define BOOST_HASH_NO_EXTENSIONS #include -#include +#include extern int f(std::size_t, int*); diff --git a/include/boost/functional/forward_adapter.hpp b/include/boost/functional/forward_adapter.hpp index 6023fc2..0d486a6 100644 --- a/include/boost/functional/forward_adapter.hpp +++ b/include/boost/functional/forward_adapter.hpp @@ -10,7 +10,7 @@ # ifndef BOOST_PP_IS_ITERATING # include -# include +# include # include # include diff --git a/include/boost/functional/hash/detail/hash_float.hpp b/include/boost/functional/hash/detail/hash_float.hpp index 1816c57..fdb432c 100644 --- a/include/boost/functional/hash/detail/hash_float.hpp +++ b/include/boost/functional/hash/detail/hash_float.hpp @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include #include diff --git a/include/boost/functional/hash/extensions.hpp b/include/boost/functional/hash/extensions.hpp index cb3c856..13202b8 100644 --- a/include/boost/functional/hash/extensions.hpp +++ b/include/boost/functional/hash/extensions.hpp @@ -20,7 +20,7 @@ #include #include -#include +#include #include #include #include diff --git a/include/boost/functional/hash/hash.hpp b/include/boost/functional/hash/hash.hpp index b461f5f..af859c6 100644 --- a/include/boost/functional/hash/hash.hpp +++ b/include/boost/functional/hash/hash.hpp @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) diff --git a/include/boost/functional/hash/hash_fwd.hpp b/include/boost/functional/hash/hash_fwd.hpp index 01fe012..a87c182 100644 --- a/include/boost/functional/hash/hash_fwd.hpp +++ b/include/boost/functional/hash/hash_fwd.hpp @@ -10,13 +10,13 @@ #if !defined(BOOST_FUNCTIONAL_HASH_FWD_HPP) #define BOOST_FUNCTIONAL_HASH_FWD_HPP -#include +#include +#include + #if defined(BOOST_HAS_PRAGMA_ONCE) #pragma once #endif -#include -#include namespace boost { diff --git a/include/boost/functional/lightweight_forward_adapter.hpp b/include/boost/functional/lightweight_forward_adapter.hpp index 2706d29..4c0d864 100644 --- a/include/boost/functional/lightweight_forward_adapter.hpp +++ b/include/boost/functional/lightweight_forward_adapter.hpp @@ -10,7 +10,7 @@ # ifndef BOOST_PP_IS_ITERATING # include -# include +# include # include # include diff --git a/overloaded_function/doc/html/boost/make_overloaded_function.html b/overloaded_function/doc/html/boost/make_overloaded_function.html index 21f5f39..bc31be5 100644 --- a/overloaded_function/doc/html/boost/make_overloaded_function.html +++ b/overloaded_function/doc/html/boost/make_overloaded_function.html @@ -3,11 +3,11 @@ Function template make_overloaded_function - + - + @@ -20,7 +20,7 @@

-PrevUpHomeNext +PrevUpHomeNext
@@ -33,15 +33,15 @@ template<typename F1, typename F2, ... > - overloaded_function< __function_type__< F1 >, __function_type__< F2 >,...> + overloaded_function< __function_type__< F1 >, __function_type__< F2 >,... > make_overloaded_function(F1 f1, F2 f2, ...);
-

Description

-

This function template creates and returns an overloaded_function object that overloads all the specified functions 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 overloaded_function. This is especially useful when the explicit type of the returned overloaded_function object does not need to be known (e.g., when used with Boost.Typeof's BOOST_AUTO, 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 BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX configuration macro.

+

Description

+

This function template creates and returns an overloaded_function object that overloads all the specified functions 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 overloaded_function. This is especially useful when the explicit type of the returned overloaded_function object does not need to be known (e.g., when used with Boost.Typeof's BOOST_AUTO, 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 BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX configuration macro.

Note: In this documentation, __function_type__ is a placeholder for a symbol that is specific to the implementation of this library.

-

See: Tutorial section, overloaded_function, BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX.

+

See: Tutorial section, overloaded_function, BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX.

@@ -54,7 +54,7 @@

-PrevUpHomeNext +PrevUpHomeNext
diff --git a/overloaded_function/doc/html/boost/overloaded_function.html b/overloaded_function/doc/html/boost/overloaded_function.html index c8c600f..8b449df 100644 --- a/overloaded_function/doc/html/boost/overloaded_function.html +++ b/overloaded_function/doc/html/boost/overloaded_function.html @@ -3,7 +3,7 @@ Class template overloaded_function - + @@ -35,19 +35,19 @@ class overloaded_function { public: // construct/copy/destruct - overloaded_function(const boost::function< F1 > &, + overloaded_function(const boost::function< F1 > &, const boost::function< F2 > &, ...); - // public member functions + // public member functions boost::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; 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; };
-

Description

+

Description

This function object aggregates together calls to functions of all the specified function types F1, F2, etc which must have distinct function signatures from one another.

Parameters:

@@ -57,38 +57,38 @@ -
FiEach function type must be specified using the following syntax (which is Boost.Function's preferred syntax):
    result_type (argument1_type, argumgnet2_type, ...)
+
Each function type must be specified using the following syntax (which is Boost.Function's preferred syntax):
result_type (argument1_type, argumgnet2_type, ...)
 

-

In some cases, the make_overloaded_function function template can be useful to construct an overloaded function object without explicitly specifying the function types.

-

At least two distinct function types must be specified (because there is nothing to overload between one or zero functions). 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.

+

In some cases, the make_overloaded_function function template can be useful to construct an overloaded function object without explicitly specifying the function types.

+

At least two distinct function types must be specified (because there is nothing to overload between one or zero functions). 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/destruct

  1. -
    overloaded_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.

    Note: Unfortunately, it is not possible to support polymorphic function objects (as explained here).

-

-overloaded_function public member functions

+

+overloaded_function public member functions

  1. boost::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.

  2. 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).

  3. diff --git a/overloaded_function/doc/html/boost_functional_overloadedfunction/acknowledgments.html b/overloaded_function/doc/html/boost_functional_overloadedfunction/acknowledgments.html index 605d481..0d4d295 100644 --- a/overloaded_function/doc/html/boost_functional_overloadedfunction/acknowledgments.html +++ b/overloaded_function/doc/html/boost_functional_overloadedfunction/acknowledgments.html @@ -3,10 +3,10 @@ Acknowledgments - + - + @@ -19,9 +19,9 @@

    -PrevUpHome +PrevUpHome
    -
    +
    @@ -54,7 +54,7 @@
    -PrevUpHome +PrevUpHome
    diff --git a/overloaded_function/doc/html/boost_functional_overloadedfunction/getting_started.html b/overloaded_function/doc/html/boost_functional_overloadedfunction/getting_started.html index 459e7d5..a05da4a 100644 --- a/overloaded_function/doc/html/boost_functional_overloadedfunction/getting_started.html +++ b/overloaded_function/doc/html/boost_functional_overloadedfunction/getting_started.html @@ -3,7 +3,7 @@ Getting Started - + @@ -22,7 +22,7 @@
    PrevUpHomeNext
    -
    +

    Getting Started @@ -35,7 +35,7 @@

    This section explains how to setup a system to use this library.

    -
    +

    Compilers and Platforms @@ -60,7 +60,7 @@ for any special configuration that might be required for a specific compiler.

    -
    +
    @@ -71,9 +71,9 @@ using the library.

    - The maximum number of functions to overload is given by the BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX + 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 type is given by the BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX + the specified function type is given by the BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX configuration macro. All configuration macros have appropriate default values when they are left undefined.

    diff --git a/overloaded_function/doc/html/boost_functional_overloadedfunction/tutorial.html b/overloaded_function/doc/html/boost_functional_overloadedfunction/tutorial.html index 98493ac..132ae1d 100644 --- a/overloaded_function/doc/html/boost_functional_overloadedfunction/tutorial.html +++ b/overloaded_function/doc/html/boost_functional_overloadedfunction/tutorial.html @@ -3,7 +3,7 @@ Tutorial - + @@ -22,7 +22,7 @@
    PrevUpHomeNext
    -
    +
    @@ -34,7 +34,7 @@

    This section explains how to use this library.

    -
    +
    @@ -87,7 +87,7 @@

    Then the relative function pointers, function references, or monomorphic function objects are passed to the boost::overloaded_function - constructor matching the order of the specified template parameters. [2] In the above example, identity_s + constructor matching the order of the specified template parameters. [2] In the above example, identity_s is passed as a function pointer (the function address is automatically taken from the function name by the compiler), identity_i as a function reference, and identity_d @@ -95,12 +95,12 @@

    All specified function types must have distinct parameters from one another - (so the overloaded calls can be resolved by this library). [3] In order to create an overloaded function object, it is necessary + (so the overloaded calls can be resolved by this library). [3] In order to create an overloaded function object, it is necessary to specify at least two function types (because there is nothing to overload between one or zero functions).

    -
    +

    Without Function Types @@ -188,8 +188,8 @@

    -

    -

    [2] +


    +

    [2] Function pointers are of the form result-type (*)(argument1-type, ...) (the C++ compiler is usually able to automatically promote a function name to a function pointer in a context where a function pointer is expected even @@ -204,7 +204,7 @@ Unfortunately, it is not possible to support polymorphic function objects (see http://lists.boost.org/Archives/boost/2012/03/191744.php).

    -

    [3] +

    [3] Note that in C++ the function result type is not used for overload resolution (to avoid making the overload resolution context dependent). Therefore, at least one of the function parameters must be distinct for each specified diff --git a/overloaded_function/doc/html/index.html b/overloaded_function/doc/html/index.html index 5e6c0e9..b8e5881 100644 --- a/overloaded_function/doc/html/index.html +++ b/overloaded_function/doc/html/index.html @@ -3,7 +3,7 @@ Chapter 1. Boost.Functional/OverloadedFunction 1.0.0 - + @@ -61,7 +61,7 @@

    This library allows to overload different functions into a single function object.

    -
    +
    @@ -84,7 +84,7 @@

    Instead of calling them using their separate names (here BOOST_TEST is equivalent to assert): - [1] + [1]

    @@ -124,21 +124,21 @@

    -

    -

    [1] - In most of the examples presented in this documentation, the Boost.Detail/LightweightTest - (boost/detail/lightweight_test.hpp) macro BOOST_TEST is used to check correctness +


    +

    [1] + In most of the examples presented in this documentation, the Boost.Core/LightweightTest + (boost/core/lightweight_test.hpp) macro BOOST_TEST is used to check correctness conditions (conceptually similar to assert). A failure of the checked condition does not abort the execution of the program, it will instead make boost::report_errors - return a non-zero program exit code. Using Boost.Detail/LightweightTest allows + return a non-zero program exit code. Using Boost.Core/LightweightTest allows to add the examples to the library regression tests so to make sure that they always compile and run correctly.

    - +

    Last revised: April 28, 2012 at 02:19:13 GMT

    Last revised: December 03, 2017 at 14:34:49 GMT


    diff --git a/overloaded_function/doc/html/reference.html b/overloaded_function/doc/html/reference.html index 55a89f0..b7c14b0 100644 --- a/overloaded_function/doc/html/reference.html +++ b/overloaded_function/doc/html/reference.html @@ -3,7 +3,7 @@ Reference - + @@ -22,32 +22,32 @@
    PrevUpHomeNext
    -
    +

    Reference

    -
    +

    Overload distinct function pointers, function references, and monomorphic function objects into a single function object.

    namespace boost {
       template<typename F1, typename F2, ... > class overloaded_function;
       template<typename F1, typename F2, ... > 
    -    overloaded_function< __function_type__< F1 >, __function_type__< F2 >,...> 
    +    overloaded_function< __function_type__< F1 >, __function_type__< F2 >,... > 
         make_overloaded_function(F1, F2, ...);
     }
    - diff --git a/overloaded_function/doc/overloaded_function.qbk b/overloaded_function/doc/overloaded_function.qbk index 6cf6964..378793c 100644 --- a/overloaded_function/doc/overloaded_function.qbk +++ b/overloaded_function/doc/overloaded_function.qbk @@ -42,9 +42,9 @@ Consider the following functions which have distinct signatures: Instead of calling them using their separate names (here `BOOST_TEST` is equivalent to `assert`): [footnote -In most of the examples presented in this documentation, the Boost.Detail/LightweightTest (=boost/detail/lightweight_test.hpp=) macro `BOOST_TEST` is used to check correctness conditions (conceptually similar to `assert`). +In most of the examples presented in this documentation, the Boost.Core/LightweightTest (=boost/core/lightweight_test.hpp=) macro `BOOST_TEST` is used to check correctness conditions (conceptually similar to `assert`). A failure of the checked condition does not abort the execution of the program, it will instead make `boost::report_errors` return a non-zero program exit code. -Using Boost.Detail/LightweightTest allows to add the examples to the library regression tests so to make sure that they always compile and run correctly. +Using Boost.Core/LightweightTest allows to add the examples to the library regression tests so to make sure that they always compile and run correctly. ] [identity_calls] diff --git a/overloaded_function/test/functor.cpp b/overloaded_function/test/functor.cpp index 86827fc..2df52e7 100644 --- a/overloaded_function/test/functor.cpp +++ b/overloaded_function/test/functor.cpp @@ -7,7 +7,7 @@ #include "identity.hpp" #include -#include +#include int main() { //[identity_calls diff --git a/overloaded_function/test/make_call.cpp b/overloaded_function/test/make_call.cpp index e2abdde..89ffab0 100644 --- a/overloaded_function/test/make_call.cpp +++ b/overloaded_function/test/make_call.cpp @@ -7,7 +7,7 @@ #include "identity.hpp" #include -#include +#include //[identity_make_checks template diff --git a/overloaded_function/test/make_decl.cpp b/overloaded_function/test/make_decl.cpp index 6f5cbdf..ea3bac6 100644 --- a/overloaded_function/test/make_decl.cpp +++ b/overloaded_function/test/make_decl.cpp @@ -8,7 +8,7 @@ #include "identity.hpp" #include #include -#include +#include int main() { //[identity_make_decl