mirror of
https://github.com/boostorg/range.git
synced 2025-07-29 20:37:25 +02:00
Boost.RangeEx merged into Boost.Range
[SVN r60897]
This commit is contained in:
30
doc/reference/algorithm_ext/erase.qbk
Normal file
30
doc/reference/algorithm_ext/erase.qbk
Normal file
@ -0,0 +1,30 @@
|
||||
[section:erase erase]
|
||||
|
||||
[heading Prototype]
|
||||
|
||||
``
|
||||
template<
|
||||
class Container,
|
||||
class SinglePassRange
|
||||
>
|
||||
void erase(Container& target,
|
||||
iterator_range<typename Container::iterator> to_erase);
|
||||
``
|
||||
|
||||
[heading Description]
|
||||
|
||||
`erase` the iterator range `to_erase` from the container `target`.
|
||||
|
||||
[heading Definition]
|
||||
|
||||
Defined in the header file `boost/range/algorithm_ext/erase.hpp`
|
||||
|
||||
[heading Requirements]
|
||||
|
||||
# `Container` supports erase of an iterator range.
|
||||
|
||||
[heading Complexity]
|
||||
|
||||
Linear. Proprotional to `distance(to_erase)`.
|
||||
|
||||
[endsect]
|
Reference in New Issue
Block a user