diff -Naur boost-1.28.0/libs/lambda/doc/ar01s04.html boost-1.28.0-new/libs/lambda/doc/ar01s04.html --- boost-1.28.0/libs/lambda/doc/ar01s04.html Wed May 8 17:42:48 2002 +++ boost-1.28.0-new/libs/lambda/doc/ar01s04.html Fri May 17 17:50:47 2002 @@ -25,7 +25,7 @@ Next, we create a container of pointers and make them point to the elements in the first container v:
-list<int*> vp(10); 
+vector<int*> vp(10); 
 transform(v.begin(), v.end(), vp.begin(), &_1);
The expression &_1 creates a function object for getting the address of each element in v. diff -Naur boost-1.28.0/libs/lambda/doc/ar01s05.html boost-1.28.0-new/libs/lambda/doc/ar01s05.html --- boost-1.28.0/libs/lambda/doc/ar01s05.html Wed May 8 17:42:48 2002 +++ boost-1.28.0-new/libs/lambda/doc/ar01s05.html Fri May 17 17:49:29 2002 @@ -829,7 +829,7 @@ showing the expression to create and call the function object, and the effect of evaluating that expression. -

Table 1. Construction and destruction related function objects.

Function object callWrapped expression
constructor<T>()(arg_list)T(arg_list)
destructor()(a)a.~A(), where a is of type A
destructor()(pa)pa.->A(), where pa is of type A*
new_ptr<T>()(arg_list)new T(arg_list)
new_array<T>()(sz)new T[sz]
delete_ptr()(p)delete p
delete_array()(p)delete p[]

5.9. Special lambda expressions

5.9.1. Preventing argument substitution

+

Table 1. Construction and destruction related function objects.

Function object callWrapped expression
constructor<T>()(arg_list)T(arg_list)
destructor()(a)a.~A(), where a is of type A
destructor()(pa)pa.->~A(), where pa is of type A*
new_ptr<T>()(arg_list)new T(arg_list)
new_array<T>()(sz)new T[sz]
delete_ptr()(p)delete p
delete_array()(p)delete p[]

5.9. Special lambda expressions

5.9.1. Preventing argument substitution

When a lambda functor is called, the default behavior is to substitute the actual arguments for the placeholders within all subexpressions.