push_front.qbk 919 B

12345678910111213141516171819202122232425262728293031323334353637
  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:push_front push_front]
  7. [heading Prototype]
  8. ``
  9. template<
  10. class Container,
  11. class SinglePassRange
  12. >
  13. Container& push_front(Container& target,
  14. const SinglePassRange& from);
  15. ``
  16. [heading Description]
  17. `push_front` all of the elements in the range `from` to the front of the container `target`.
  18. [heading Definition]
  19. Defined in the header file `boost/range/algorithm_ext/push_front.hpp`
  20. [heading Requirements]
  21. # `SinglePassRange` is a model of the __single_pass_range__ Concept.
  22. # `Container` supports insert at `begin()`.
  23. # `SinglePassRange`'s value type is convertible to `Container`'s value type.
  24. [heading Complexity]
  25. Linear. `distance(from)` assignments are performed.
  26. [endsect]