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

libs/range/doc/reference/algorithm_ext/push_back.qbk

[/
    Copyright 2010 Neil Groves
    Distributed under the Boost Software License, Version 1.0.
    (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
/]
[section:push_back push_back]

[heading Prototype]

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

[heading Description]

`push_back` all of the elements in the range `from` to the back of the container `target`.

[heading Definition]

Defined in the header file `boost/range/algorithm_ext/push_back.hpp`

[heading Requirements]

# `SinglePassRange` is a model of the __single_pass_range__ Concept.
# `Container` supports insert at `end()`.
# `SinglePassRange`'s value type is convertible to `Container`'s value type.

[heading Complexity]

Linear. `distance(from)` assignments are performed.

[endsect]