diff --git a/doc/reference.xml b/doc/reference.xml
index a39309c..f05232c 100644
--- a/doc/reference.xml
+++ b/doc/reference.xml
@@ -76,12 +76,13 @@
objects. Objects of type function_base may not be created
directly.
-
-
+
+
+ bool
true
if this
has a target, and false
otherwise.
Will not throw.
-
+
@@ -124,7 +125,7 @@
T1
T2
-
+
TN
@@ -168,39 +169,44 @@
Will not throw when the target of f
is a stateless function object or a reference to the function object.
-
-
+
+
+ void
const functionN&
Interchanges the targets of *this
and f
.
Will not throw.
-
+
+ void
this->empty()
Will not throw.
-
+
-
+
bool
true
if this
has a target, and false
otherwise.
Will not throw.
-
+
+ safe_bool
A safe_bool
that evaluates false
in a boolean context when this->empty()
, and true
otherwise.
Will not throw.
-
+
+ bool
this->empty()
Will not throw.
-
+
-
-
+
+
+ result_type
arg1_type
arg2_type
...
@@ -209,10 +215,10 @@
if R
is void
, nothing is returned; otherwise, the return value of the call to f
is returned.
bad_function_call
if !this->empty()
. Otherwise, may through any exception thrown by the target function f
.
-
+
-
+
@@ -220,6 +226,7 @@
+ void
functionN<T1, T2, ..., TN, Allocator>&
functionN<T1, T2, ..., TN, Allocator>&
f1.swap(f2)
@@ -228,7 +235,7 @@
-
+
@@ -241,13 +248,14 @@
+ void
const functionN<T1, T2, ..., TN, Allocator1>&
const functionN<U1, U2, ..., UN, Allocator2>&
This function must be left undefined.
The safe_bool
conversion opens a loophole whereby two function instances can be compared via ==
. This undefined void operator ==
closes the loophole and ensures a compile-time or link-time error.
-
+
@@ -260,6 +268,7 @@
+ void
const functionN<T1, T2, ..., TN, Allocator1>&
const functionN<U1, U2, ..., UN, Allocator2>&
This function must be left undefined.
@@ -270,7 +279,9 @@
-
+
+ Function type R (T1, T2, ..., TN)
+
std::allocator<void>
@@ -311,7 +322,7 @@
T1
T2
-
+
TN
@@ -371,38 +382,44 @@
Will not throw when the target of f
is a stateless function object or a reference to the function object.
-
-
+
+
+ void
const function&
Interchanges the targets of *this
and f
.
Will not throw.
-
+
+ void
this->empty()
Will not throw.
-
+
-
-
+
+
+ bool
true
if this
has a target, and false
otherwise.
Will not throw.
-
+
+ safe_bool
A safe_bool
that evaluates false
in a boolean context when this->empty()
, and true
otherwise.
Will not throw.
-
+
+ bool
this->empty()
Will not throw.
-
+
-
-
+
+
+ result_type
arg1_type
arg2_type
...
@@ -411,14 +428,15 @@
if R
is void
, nothing is returned; otherwise, the return value of the call to f
is returned.
bad_function_call
if !this->empty()
. Otherwise, may through any exception thrown by the target function f
.
-
+
-
+
+ void
function<Signature, Allocator>&
function<Signature, Allocator>&
f1.swap(f2)
@@ -427,26 +445,28 @@
-
+
+ void
const function<Signature1, Allocator1>&
const function<Signature2, Allocator2>&
This function must be left undefined.
The safe_bool
conversion opens a loophole whereby two function instances can be compared via ==
. This undefined void operator ==
closes the loophole and ensures a compile-time or link-time error.
-
+
+ void
const function<Signature1, Allocator1>&
const function<Signature2, Allocator2>&
This function must be left undefined.
diff --git a/doc/tutorial.xml b/doc/tutorial.xml
index 68da82a..e1f8337 100644
--- a/doc/tutorial.xml
+++ b/doc/tutorial.xml
@@ -210,7 +210,7 @@ X x;
f(&x, 5);
-boost::function2<int, X*, int> f;
+boost::function2<int, X*, int> f;
f = &X::foo;
@@ -299,7 +299,7 @@ f(&x, 5);
boost::function<int (int)> f2(f);
- stateful_type a_function_object;
+ stateful_type a_function_object;
boost::function1<int, int> f;
f = boost::ref(a_function_object);