Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

push_front
PrevUpHomeNext
Prototype

template<
    class Container,
    class SinglePassRange
    >
Container& push_front(Container& target,
                      const SinglePassRange& from);

Description

push_front all of the elements in the range from to the front of the container target.

Definition

Defined in the header file boost/range/algorithm_ext/push_front.hpp

Requirements
  1. SinglePassRange is a model of the Single Pass Range Concept.
  2. Container supports insert at begin().
  3. SinglePassRange's value type is convertible to Container's value type.
Complexity

Linear. distance(from) assignments are performed.


PrevUpHomeNext