diff --git a/doc/reference.html b/doc/reference.html index ba804bf..adc0b58 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -45,15 +45,15 @@ // Construction explicit functionN(const Mixin& = Mixin()); functionN(const functionN&); - template<typename F> functionN(const F&, const Mixin& = Mixin()); + template<typename F> functionN(F, const Mixin& = Mixin()); template<typename F> functionN(reference_wrapper<F>); // Assignment functionN& operator=(const functionN&); - template<typename F> functionN& operator=(const F&); + template<typename F> functionN& operator=(F); template<typename F> functionN& operator=(reference_wrapper<F>); void set(const functionN&); - template<typename F> void set(const F&); + template<typename F> void set(F); void swap(functionN&); void clear(); @@ -87,16 +87,16 @@ // Construction function(); function(const function&); - functionN(const functionN&); - template<typename F> functionN(const F&); + function(const functionN<Arg1, Arg2, ..., ArgN>&); + template<typename F> functionN(F); // Assignment function& operator=(const function&); - functionN& operator=(const functionN&); - template<typename F> function& operator=(const F&); + function& operator=(const functionN<Arg1, Arg2, ..., ArgN>&); + template<typename F> function& operator=(F); void set(const function&); - void set(const functionN&); - template<typename F> void set(const F&); + void set(const functionN<Arg1, Arg2, ..., ArgN>&); + template<typename F> void set(F); }; template<typename ResultType, @@ -174,7 +174,7 @@
  • Postconditions: f contains a copy of the g's target, if it has one, or is empty if g.empty(). The mixin for the f is copy-constructed from the mixin of g.
  • -

    template<typename F> functionN(const F& g, const Mixin& = Mixin()); +

    template<typename F> functionN(F g, const Mixin& = Mixin());

    -

    template<typename F> functionN& operator=(const F& g); +

    template<typename F> functionN& operator=(F g);

    -

    template<typename F> void set(const F& g); +

    template<typename F> void set(F g);

    @@ -288,7 +288,7 @@
    Douglas Gregor
    -Last modified: Sun Oct 28 00:40:55 EDT 2001 +Last modified: Wed Dec 5 18:14:37 EST 2001 diff --git a/doc/tutorial.html b/doc/tutorial.html index 9f23562..b87a569 100644 --- a/doc/tutorial.html +++ b/doc/tutorial.html @@ -60,9 +60,11 @@ else

    Free function pointers can be considered singleton function objects with const function call operators, and can therefore be directly used with the function object wrappers:

       float mul_ints(int x, int y) { return ((float)x) * y; }
    -  f = &mul_ints;
    +  f = &mul_ints;
     
    +

    Note that the & isn't really necessary unless you happen to be using Microsoft Visual C++ version 6. +

    Member functions

    In many systems, callbacks often call to member functions of a particular @@ -73,10 +75,10 @@ object. This is often referred to as "argument binding", and is beyond the scope }; boost::function<int, X*, int> f; - f = &X::foo; + f = &X::foo; X x; - f(&x, 5); + f(&x, 5);

    Several libraries exist that support argument binding. Three such libraries are summarized below: