overwrite.qbk 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:overwrite overwrite]
  7. [heading Prototype]
  8. ``
  9. template<
  10. class SinglePassRange1,
  11. class SinglePassRange2
  12. >
  13. void overwrite(const SinglePassRange1& from,
  14. SinglePassRange2& to);
  15. ``
  16. [heading Description]
  17. `overwrite` assigns the values from the range `from` into the range `to`.
  18. [heading Definition]
  19. Defined in the header file `boost/range/algorithm_ext/overwrite.hpp`
  20. [heading Requirements]
  21. # `SinglePassRange1` is a model of the __single_pass_range__ Concept.
  22. # `SinglePassRange2` is a model of the __single_pass_range__ Concept.
  23. # `SinglePassRange2` is mutable.
  24. # `distance(SinglePassRange1) <= distance(SinglePassRange2)`
  25. # `SinglePassRange1`'s value type is convertible to `SinglePassRange2`'s value type.
  26. [heading Complexity]
  27. Linear. `distance(rng1)` assignments are performed.
  28. [endsect]