Boost logo

Boost Users :

Subject: Re: [Boost-users] Reverse mpl set<>
From: Chard (boost_at_[hidden])
Date: 2013-04-26 04:16:15


Gabriel Redner <gredner <at> gmail.com> writes:

>
> > I'll try another tack: can an mpl::set be converted to an mpl::vector?
>
> typedef copy<your_set, back_inserter<vector<> > >::type your_vector;

Thanks; that answers my original question, if reverse[_copy] is used:

 typedef typename reverse<my_set, back_inserter<vector<> > >::type
      set_reversed_as_vector;


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