remove_erase.qbk 815 B

123456789101112131415161718192021222324252627282930313233
  1. [/
  2. Copyright 2010 Neil Groves
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. /]
  6. [section:remove_erase remove_erase]
  7. [heading Prototype]
  8. ``
  9. template<class Container, class Value>
  10. Container& remove_erase(Container& target,
  11. const Value& value);
  12. ``
  13. [heading Description]
  14. `remove_erase` actually eliminates the elements equal to `value` from the container. This
  15. is in contrast to the `remove` algorithm which merely rearranges elements.
  16. [heading Definition]
  17. Defined in the header file `boost/range/algorithm_ext/erase.hpp`
  18. [heading Requirements]
  19. # `Container` supports erase of an iterator range.
  20. [heading Complexity]
  21. Linear. Proportional to `distance(target)`s.
  22. [endsect]