forked from boostorg/functional
Using all lower case section IDs.
[SVN r78233]
This commit is contained in:
@@ -222,12 +222,10 @@ types is given by the
|
||||
@RefMacro{BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX}
|
||||
configuration macro.
|
||||
|
||||
@See
|
||||
@RefSect{Tutorial} section,
|
||||
@RefFunc{make_overloaded_function},
|
||||
@RefMacro{BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX},
|
||||
@RefMacro{BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX},
|
||||
Boost.Function.
|
||||
@See @RefSect{tutorial, Tutorial} section, @RefFunc{make_overloaded_function},
|
||||
@RefMacro{BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX},
|
||||
@RefMacro{BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX},
|
||||
Boost.Function.
|
||||
*/
|
||||
template<typename F1, typename F2, ...>
|
||||
class overloaded_function {
|
||||
@@ -290,7 +288,7 @@ This is especially useful when the explicit type of the returned
|
||||
@RefClass{overloaded_function} object does not need to be known (e.g., when
|
||||
used with Boost.Typeof's <c>BOOST_AUTO</c>, C++11 <c>auto</c>, or when the
|
||||
overloaded function object is handled using a function template parameter, see
|
||||
the @RefSect{Tutorial} section).
|
||||
the @RefSect{tutorial, Tutorial} section).
|
||||
|
||||
The maximum number of functions to overload is given by the
|
||||
@RefMacro{BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX}
|
||||
@@ -299,10 +297,8 @@ configuration macro.
|
||||
@Note In this documentation, <c>__function_type__</c> is a placeholder for a
|
||||
symbol that is specific to the implementation of this library.
|
||||
|
||||
@See
|
||||
@RefSect{Tutorial} section,
|
||||
@RefClass{overloaded_function},
|
||||
@RefMacro{BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX}.
|
||||
@See @RefSect{tutorial, Tutorial} section, @RefClass{overloaded_function},
|
||||
@RefMacro{BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX}.
|
||||
*/
|
||||
template<typename F1, typename F2, ...>
|
||||
overloaded_function<
|
||||
|
||||
@@ -20,12 +20,11 @@ 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.
|
||||
|
||||
@See
|
||||
@RefSectId{Getting_Started, Getting Started},
|
||||
@RefClass{boost::overloaded_function}.
|
||||
@See @RefSect{getting_started, Getting Started},
|
||||
@RefClass{boost::overloaded_function}.
|
||||
*/
|
||||
#ifndef BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX
|
||||
#define BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX 5
|
||||
# define BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX 5
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -37,15 +36,14 @@ 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).
|
||||
|
||||
@See
|
||||
@RefSectId{Getting_Started, Getting Started},
|
||||
@RefClass{boost::overloaded_function}.
|
||||
@See @RefSect{getting_started, Getting Started},
|
||||
@RefClass{boost::overloaded_function}.
|
||||
*/
|
||||
#ifndef BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX
|
||||
#define BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX 5
|
||||
# define BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX 5
|
||||
#endif
|
||||
#if BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX < 2
|
||||
#error "BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX must be >= 2"
|
||||
# error "maximum overload macro cannot be less than 2"
|
||||
#endif
|
||||
|
||||
#endif // #include guard
|
||||
|
||||
Reference in New Issue
Block a user