diff --git a/doc/reference.html b/doc/reference.html index acaf2c4..b4b2a68 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -12,110 +12,110 @@

Here MAX_ARGS is an implementation-defined constant that defines the maximum number of function arguments supported by Boost.Function and will be at least 10. The MAX_ARGS constant referred to in this document need not have any direct representation in the library.

-namespace boost {
-  class function_base
+namespace boost {
+  class function_base
   {
-    bool empty() const;
-    operator bool() const;
+    bool empty() const;
+    operator bool() const;
   };
 
   // For N in [0, MAX_ARGS]
-  template<typename ResultType,
-           typename Arg1,
-	   typename Arg2,
+  template<typename ResultType,
+           typename Arg1,
+	   typename Arg2,
            ...
-           typename ArgN,
-	   typename Policy    = empty_function_policy,
-	   typename Mixin     = empty_function_mixin,
-	   typename Allocator = std::allocator<function_base> >
-  class functionN : public function_base, public Mixin
+           typename ArgN,
+	   typename Policy    = empty_function_policy,
+	   typename Mixin     = empty_function_mixin,
+	   typename Allocator = std::allocator<function_base> >
+  class functionN : public function_base, public Mixin
   {
-    typedef ResultType result_type;
-    typedef Policy     policy_type;
-    typedef Mixin      mixin_type;
-    typedef Allocator  allocator_type;
+    typedef ResultType result_type;
+    typedef Policy     policy_type;
+    typedef Mixin      mixin_type;
+    typedef Allocator  allocator_type;
 
-    typedef Arg1 argument_type;        // If N == 1
+    typedef Arg1 argument_type;        // If N == 1
 
-    typedef Arg1 first_argument_type;  // If N == 2
-    typedef Arg2 second_argument_type; // If N == 2
+    typedef Arg1 first_argument_type;  // If N == 2
+    typedef Arg2 second_argument_type; // If N == 2
 
     // Construction
-    explicit functionN(const Mixin& = Mixin());
-    functionN(const functionN&);
-    template<typename F> functionN(const F&, const Mixin& = Mixin());
+    explicit functionN(const Mixin& = Mixin());
+    functionN(const functionN&);
+    template<typename F> functionN(const F&, const Mixin& = Mixin());
     
     // Assignment
-    functionN& operator=(const functionN&);
-    template<typename F> functionN& operator=(const F&);
-    void set(const functionN&);
-    template<typename F> void set(const F&);
-    void swap(functionN&);
-    void clear();
+    functionN& operator=(const functionN&);
+    template<typename F> functionN& operator=(const F&);
+    void set(const functionN&);
+    template<typename F> void set(const F&);
+    void swap(functionN&);
+    void clear();
 
     // Invocation
-    result_type operator()(Arg1 a1, Arg2 a2, ..., ArgN aN);
-    result_type operator()(Arg1 a1, Arg2 a2, ..., ArgN aN) const;
+    result_type operator()(Arg1 a1, Arg2 a2, ..., ArgN aN);
+    result_type operator()(Arg1 a1, Arg2 a2, ..., ArgN aN) const;
   };
 
-  template<typename ResultType,
-           typename Arg1,
-	   typename Arg2,
+  template<typename ResultType,
+           typename Arg1,
+	   typename Arg2,
            ...
-	   typename ArgN,
-           typename Policy,
-           typename Mixin,
-           typename Allocator>
-  inline void swap(const function<Arg1, Arg2, ...ArgN, Policy, Mixin, Allocator>&,
-                   const function<Arg1, Arg2, ...ArgN, Policy, Mixin, Allocator>&);
+	   typename ArgN,
+           typename Policy,
+           typename Mixin,
+           typename Allocator>
+  void swap(const function<Arg1, Arg2, ..., ArgN, Policy, Mixin, Allocator>&,
+            const function<Arg1, Arg2, ..., ArgN, Policy, Mixin, Allocator>&);
 
   // For any N in [0, MAX_ARGS]
-  template<typename ResultType,
-           typename Arg1,
-	   typename Arg2,
+  template<typename ResultType,
+           typename Arg1,
+	   typename Arg2,
            ...
-           typename ArgN,
-           typename ArgN+1 = implementation-defined,
-           typename ArgN+2 = implementation-defined,
+           typename ArgN,
+           typename ArgN+1 = implementation-defined,
+           typename ArgN+2 = implementation-defined,
 	   ...
-	   typename ArgMAX_ARGS = implementation-defined>
-  class function : public functionN<Arg1, Arg2, ..., ArgN>
+	   typename ArgMAX_ARGS = implementation-defined>
+  class function : public functionN<Arg1, Arg2, ..., ArgN>
   {
     // Construction
     function();
-    function(const function&);
-    functionN(const functionN&);
-    template<typename F> functionN(const F&);
+    function(const function&);
+    functionN(const functionN&);
+    template<typename F> functionN(const F&);
     
     // Assignment
-    function& operator=(const function&);
-    functionN& operator=(const functionN&);
-    template<typename F> function& operator=(const F&);
-    void set(const function&);
-    void set(const functionN&);
-    template<typename F> void set(const F&);
+    function& operator=(const function&);
+    functionN& operator=(const functionN&);
+    template<typename F> function& operator=(const F&);
+    void set(const function&);
+    void set(const functionN&);
+    template<typename F> void set(const F&);
   };
 
-  template<typename ResultType,
-           typename Arg1,
-	   typename Arg2,
+  template<typename ResultType,
+           typename Arg1,
+	   typename Arg2,
            ...
-	   typename ArgMAX_ARGS>
-  inline void swap(const function<Arg1, Arg2, ...ArgMAX_ARGS>&,
-                   const function<Arg1, Arg2, ...ArgMAX_ARGS>&);
+	   typename ArgMAX_ARGS>
+  void swap(const function<Arg1, Arg2, ..., ArgMAX_ARGS>&,
+            const function<Arg1, Arg2, ..., ArgMAX_ARGS>&);
 }	   
 

Class function_base

Class function_base is the common base class for all Boost.Function objects. Objects of type function_base may not be created directly. -

bool empty() const +

bool empty() const

-

operator bool() const +

operator bool() const