1 .. Algorithms/Inserters//back_inserter
24 Inserts elements at the end of the sequence.
31 #include <boost/mpl/back_inserter.hpp>
42 +---------------+-------------------------------+---------------------------------------+
43 | Parameter | Requirement | Description |
44 +===============+===============================+=======================================+
45 | ``Seq`` | |Back Extensible Sequence| | A sequence to bind the inserter to. |
46 +---------------+-------------------------------+---------------------------------------+
52 |Semantics disclaimer...| |Inserter|.
54 For any |Back Extensible Sequence| ``s``:
56 +---------------------------+-------------------------------------------------------+
57 | Expression | Semantics |
58 +===========================+=======================================================+
59 | ``back_inserter<s>`` | An |Inserter| ``in``, equivalent to |
61 | | .. parsed-literal:: |
63 | | struct in : inserter<s,push_back<_1,_2> > {}; |
64 +---------------------------+-------------------------------------------------------+
70 Amortized constant time.
80 , back_inserter< vector_c<int,0,1,2,3,4> >
83 BOOST_MPL_ASSERT(( equal< range, range_c<int,0,10> > ));
89 |Algorithms|, |Inserter|, |Reversible Algorithm|, |[inserter]|, |front_inserter|, |push_back|
92 .. copyright:: Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams
93 Distributed under the Boost Software License, Version 1.0. (See accompanying
94 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)