Files
boost_range/doc/reference/algorithm_ext/push_front.qbk
Neil Groves a47f15a98f Boost.Range merge from trunk to release.
This is motivated by the need to correct the istream_range, to correct the adaptors.hpp header file, and correct the return types of various range algorithms.

[SVN r61517]
2010-04-23 22:50:56 +00:00

33 lines
727 B
Plaintext

[section:push_front push_front]
[heading Prototype]
``
template<
class Container,
class SinglePassRange
>
Container& push_front(Container& target,
const SinglePassRange& from);
``
[heading Description]
`push_front` all of the elements in the range `from` to the front of the container `target`.
[heading Definition]
Defined in the header file `boost/range/algorithm_ext/push_front.hpp`
[heading Requirements]
# `SinglePassRange` is a model of the __single_pass_range__ Concept.
# `Container` supports insert at `begin()`.
# `SinglePassRange`'s value type is convertible to `Container`'s value type.
[heading Complexity]
Linear. `distance(from)` assignments are performed.
[endsect]