$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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