Back to Arangodb

back_inserter

3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/back-inserter.html

3.12.9.12.5 KB
Original Source

| Prev Next | Back Along | Up Home | Full TOC | Front Page / Algorithms / Inserters / back_inserter |

back_inserter

Synopsis

template<
      typename Seq
    >
struct[back\_inserter](./back-inserter.html){
    //_unspecified_//_..._};

Description

Inserts elements at the end of the sequence.

#include <[boost/mpl/back\_inserter.hpp](../../../../boost/mpl/back_inserter.hpp)>

Model of

Inserter

Parameters

ParameterRequirementDescription
SeqBack Extensible SequenceA sequence to bind the inserter to.

Expression semantics

The semantics of an expression are defined only where they differ from, or are not defined in Inserter.

For any Back Extensible Sequence s:

ExpressionSemantics
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)> > {};

|

Complexity

Amortized constant time.

Example

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> > ));

See also

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) |