forked from boostorg/range
[range] fixed #5160 (typo in replace_copy_if() example on intro page for range adaptors)
[SVN r82325]
This commit is contained in:
@ -93,7 +93,7 @@ What this means is that ['*no*] algorithm with the `_if` suffix is needed. Furth
|
||||
|
||||
``
|
||||
std::vector<int> vec;
|
||||
boost::replace_copy_if( rng, std::back_inserter(vec), pred );
|
||||
boost::replace_copy_if( rng, std::back_inserter(vec), pred, new_value );
|
||||
``
|
||||
|
||||
With adaptors and algorithms we can express this as
|
||||
|
Reference in New Issue
Block a user