Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2005-05-25 13:17:29


> -----Original Message-----
>
> Hi,
>
> I would like to do the following:
>
> multi_array<double,2> a(boost::extents [ extent_range(1,361)]
> [ extent_range(1,3)]);
> ...
> multi_array<double,2>::iterator i =
> std::find(a.begin(),a.end(),_1[2]==50.);
>
> That is, I want to find the row where the second column is
> 50. Since lambda can't be used like this, how would you
> propose I do this in a syntactically concise manner?

std::find_if

Doh.


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