[fusion] conversion from map *values* to vector

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? Thank you, Alfredo

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
participants (2)
-
alfC
-
Joel de Guzman