Boost logo

Boost Users :

Subject: Re: [Boost-users] [fusion] conversion from map *values* to vector
From: Joel de Guzman (joel_at_[hidden])
Date: 2010-11-09 18:49:53


On 11/10/2010 7:16 AM, alfC wrote:
> I have a general fusion map
> for example
> map< pair<p, double> , pair<q, double> >
>
> if I use as_vector I get
>
> vector<pair<p, double> , pair<q, double> >
>
> is there a function that given the map converts it into
> vector<double, double>
>
> i.e. gives a vector with only the values of the key and not the keys/
> value pair?

Yeah: transform.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net

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