RE: [Boost-users] Searching through a multi_array[_ref] using STLalgorithms

25 May
2005
25 May
'05
6:17 p.m.
-----Original Message-----
Hi,
I would like to do the following:
multi_array
a(boost::extents [ extent_range(1,361)] [ extent_range(1,3)]); ... multi_array ::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.
7220
Age (days ago)
7220
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sohail Somani