Boost logo

Boost Users :

Subject: Re: [Boost-users] [multi_index_container] push_back?
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2008-09-09 10:13:08


On Tue, Sep 9, 2008 at 3:58 PM, Robert Jones <robertgbjones_at_[hidden]>wrote:

> On Tue, Sep 9, 2008 at 2:43 PM, Ovanes Markarian <om_boost_at_[hidden]>
> wrote:
> > It depends on what your container consists of. Ordered Index allows only
> > insert. If it would support sequenced or random access policies you would
> > have the push_back member.
>
> Ahh! Got it, great - just added a first index of sequenced and off we go!

But as suggested by Peter in another thread you can use std::inserter
instead of back_inserter in your copy algorithm call, if you don't need to
remember the insertion order at all.

Good Luck,
Ovanes



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net