forked from boostorg/range
Merge pull request #22 from insideoutclub/develop
Update algorithms.qbk
This commit is contained in:
@ -63,7 +63,7 @@ std::vector<int> vec = ...;
|
||||
boost::erase(vec, boost::unique<boost::return_found_end>(boost::sort(vec)));
|
||||
``
|
||||
|
||||
Notice the use of `boost::return_found_end`. What if we wanted to erase all the duplicates except one of them? In old-fashined STL-programming we might write
|
||||
Notice the use of `boost::return_found_end`. What if we wanted to erase all the duplicates except one of them? In old-fashioned STL-programming we might write
|
||||
|
||||
``
|
||||
// assume 'vec' is already sorted
|
||||
|
Reference in New Issue
Block a user