Boost logo

Boost Users :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2004-07-20 15:08:48

"Arkadiy Vertleyb" <vertleyb_at_[hidden]> wrote

> If you just need to concatenate two sequences, you can use fold_backward
> 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>
> >{};

After taking a look at the joint_view documentation:

>Amortized constant time.

... I actually regret that I ever suggested using fold_backward/push_front
for this purpose :)


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at