3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/back-inserter.html
| Prev Next | Back Along | Up Home | Full TOC | Front Page / Algorithms / Inserters / back_inserter |
template<
typename Seq
>
struct[back\_inserter](./back-inserter.html){
//_unspecified_//_..._};
Inserts elements at the end of the sequence.
#include <[boost/mpl/back\_inserter.hpp](../../../../boost/mpl/back_inserter.hpp)>
| Parameter | Requirement | Description |
|---|---|---|
| Seq | Back Extensible Sequence | A sequence to bind the inserter to. |
The semantics of an expression are defined only where they differ from, or are not defined in Inserter.
For any Back Extensible Sequence s:
| Expression | Semantics |
|---|---|
| back_inserter<s> |
An Inserter in, equivalent to
struct in :[inserter](./inserter-class.html)<s,[push\_back](./push-back.html)<[\_1](./placeholders.html),[\_2](./placeholders.html)> > {};
|
Amortized constant time.
typedef[copy](./copy.html)<[range\_c](./range-c.html)<int,5,10>
,[back\_inserter](./back-inserter.html)<[vector\_c](./vector-c.html)<int,0,1,2,3,4> >
>::type range;[BOOST\_MPL\_ASSERT](./assert.html)(([equal](./equal.html)< range,[range\_c](./range-c.html)<int,0,10> > ));
Algorithms, Inserter, Reversible Algorithm, inserter (class), front_inserter, push_back
| Prev Next | Back Along | Up Home | Full TOC |
Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams 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) |