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