forked from boostorg/bind
Typos fixed.
[SVN r11845]
This commit is contained in:
@@ -75,7 +75,7 @@ define an enhanced <b>for_each</b> algorithm with an overload of the form:
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
template<class It, class R> void for_each(It first, It last, R (*pmf) ())
|
||||
template<class It, class R, class T> void for_each(It first, It last, R (T::*pmf) ())
|
||||
{
|
||||
std::for_each(first, last, boost::mem_fn(pmf));
|
||||
}
|
||||
@@ -93,7 +93,7 @@ that will allow the convenient syntax:
|
||||
When documenting the feature, the library author will simply state:
|
||||
</p>
|
||||
|
||||
<h4 style="margin-left: 20pt;">template<class It, class R> void for_each(It first, It last, R (*pmf) ());</h4>
|
||||
<h4 style="margin-left: 20pt;">template<class It, class R, class T> void for_each(It first, It last, R (T::*pmf) ());</h4>
|
||||
|
||||
<p style="margin-left: 20pt;">
|
||||
<b>Effects:</b> equivalent to std::for_each(first, last, boost::mem_fn(pmf));</tt>
|
||||
|
Reference in New Issue
Block a user