Boost logo

Boost Users :

From: chun ping wang (cablepuff_at_[hidden])
Date: 2008-01-24 08:51:20


sorry it should have been
std::copy(A.begin(), A.end(), std::back_inserter(B.begin()));

On Jan 24, 2008 5:14 AM, chun ping wang <cablepuff_at_[hidden]> wrote:

>
> boost::ptr_vector<Plant> A; // pointer to vector of Animal
> // fill in A.
> boost::ptr_vector<Plant> B; // pointer to vector of Animal
>
> std::copy(A.begin(), A.end(), B.begin()); // it does not neccessary have
> to be copy, any algorithm requiring an output iterator would be fine.
>
> On Jan 24, 2008 2:25 AM, Thorsten Ottosen <thorsten.ottosen_at_[hidden]>
> wrote:
>
> > chun ping wang skrev:
> > > hmm k so which header(s) file will change?
> >
> > I expect this to be new header files.
> >
> > In the eman time, can you post your envisioned usage example?
> >
> > Thanks
> >
> > -Thorsten
> >
> > > On Jan 21, 2008 12:57 PM, Thorsten Ottosen <
> > thorsten.ottosen_at_[hidden]
> > > <mailto: thorsten.ottosen_at_[hidden]>> wrote:
> > >
> > > chun ping wang skrev:
> > > > Hi, is their going to be an overload for ptr_container to be
> > able to
> > > > work well with back_insert_iterator, front_insert_iterator and
> > > > insert_iterator. Like i can copy from ptrVectorA to ptrVectorB
> > > without
> > > > worrying about the range of ptrVectorB.
> > >
> > > It's too late for 1.35, but I will think about adding them to the
> > trunk.
> > >
> > > -Thorsten
> > > _______________________________________________
> > > Boost-users mailing list
> > > Boost-users_at_[hidden] <mailto:Boost-users_at_[hidden]>
> > > http://lists.boost.org/mailman/listinfo.cgi/boost-users
> > > <http://lists.boost.org/mailman/listinfo.cgi/boost-users>
> > >
> > >
> > >
> > >
> > ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > Boost-users mailing list
> > > Boost-users_at_[hidden]
> > > http://lists.boost.org/mailman/listinfo.cgi/boost-users
> >
> > _______________________________________________
> > Boost-users mailing list
> > Boost-users_at_[hidden]
> > http://lists.boost.org/mailman/listinfo.cgi/boost-users
> >
>
>



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