|
Boost Users : |
From: chun ping wang (cablepuff_at_[hidden])
Date: 2007-11-28 14:28:15
hmm can you give a small example of what you mean.. calling
clone_allocators' allocate clone
On Nov 28, 2007 5:38 AM, Thorsten Ottosen <thorsten.ottosen_at_[hidden]>
wrote:
> chun ping wang skrev:
> > is it possible to use stl set_unions with ptr_container or do I have
> > to hand roll my own.
> > if yes what inserter should i use or how would i use two containers
> > having pointer of int
> > ptr_vector<int> a1;
> > ptr_vector<int> a2;
> >
> > have a1 union a2 and store in a3.
>
> Should be possible, but you need a different out-put iterator compared
> to e.g. std::back_inserter( a_normal_container ).
>
> Specifically, you need to call a3's clone_allocators' allocate_clone()
> in the call to push_back().
>
> -Thorsten
> _______________________________________________
> 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