Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2004-07-20 15:48:48


"Arkadiy Vertleyb" <vertleyb_at_[hidden]> writes:

>
> If you just need to concatenate two sequences, you can use fold_backward and
> push_front, something like:
>
> template<class V1, class V2>
> struct concatenate : mpl::fold_backward<
> V1,
> V2,
> mpl::push_front<_,_> // please verify this -- not sure about the
> order -- may be <_2, _1>
>>{};

That's a lot costlier than using joint_view, though.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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