]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/range/doc/reference/algorithm_ext/insert.qbk
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / range / doc / reference / algorithm_ext / insert.qbk
CommitLineData
7c673cae
FG
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:insert insert]
7
8[heading Prototype]
9
10``
11template<
12 class Container,
13 class SinglePassRange
14>
15Container& insert(Container& target,
16 typename Container::iterator before,
17 const SinglePassRange& from);
18
19// This overload is for target containers that do not require an insertion
20// position e.g. set/map
21template<
22 class Container,
23 class SinglePassRange
24>
25Container& insert(Container& target, const SinglePassRange& from);
26``
27
28[heading Description]
29
30`insert` all of the elements in the range `from` before the `before` iterator into `target`.
31
32[heading Definition]
33
34Defined in the header file `boost/range/algorithm_ext/insert.hpp`
35
36[heading Requirements]
37
38# `SinglePassRange` is a model of the __single_pass_range__ Concept.
39# `Container` supports insert at a specified position.
40# `SinglePassRange`'s value type is convertible to `Container`'s value type.
41
42[heading Complexity]
43
44Linear. `distance(from)` assignments are performed.
45
46[endsect]