Boost logo

Boost Users :

Subject: Re: [Boost-users] [mini-review] Update of Boost.Assign (13th-19th of June)
From: er (erwann.rogard_at_[hidden])
Date: 2010-06-16 23:00:41


> With a view to promote separation of responsibility between different
> functions, perhaps we may (also) consider a new function :
>
> push_back_range(const V&,const R&);
>
> This would tie in with the proposed extension like this:
>
> push_back_range(v,cref_csv(1,2,3,4));
>
>

On second thought boost::copy is sufficient:

      boost::copy(cref_csv(1,2,3,4),std::back_inserter(v));

Also,

     BOOST_AUTO( tmp, ref_csv(a,b,c,d));
     boost::copy( v, boost::begin(tmp));

may come in handy.


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