diff --git a/index.html b/index.html index 1550022..676845b 100644 --- a/index.html +++ b/index.html @@ -289,7 +289,7 @@ inline void swap(const function<Arg1, Arg2, ...ArgMAX_ARGS>&

Basic usage

-

A wrapper is defined simply by specializing a function object with the desired return type and argument types. Any number of arguments may be supplied, up to some implementation-defined limit (10 is the default maximum). The following declares a function object wrapper f that takes two int parameters and returns a float: +

A wrapper is defined simply by instantiating the function class template with the desired return type and argument types. Any number of arguments may be supplied, up to some implementation-defined limit (10 is the default maximum). The following declares a function object wrapper f that takes two int parameters and returns a float:

 boost::function<float, int, int> f;
 
@@ -379,7 +379,7 @@ struct print_policy {

A new instance of the policy class will be created prior to calling the function object target and will be preserved until after the call has returned. Therefore, for any invocation the precall and postcall will be executed on the same policy class instance; however, policy class instances will not be kept between target invocations. -

Policies are further described in the Boost discussion on generic programming techniques. +

Policies are further described in the Boost discussion on generic programming techniques.

Mixins

The function object wrappers allow any class to be "mixed in" as a base class. This allows extra members and/or functionality to be included by the user. This can be used, for instance, to overcome the limitations of policies by storing data between invocations in a base class instead of in a static member of a policy class.