
15 Jul
2005
15 Jul
'05
7:52 a.m.
Hello, Is it possible to do something like the following: typedef boost::tuple<double, int, int> element; std::vector<element> d; std::vector<element>::iterator i = std::max_element(d.begin(), d.end(), bind(std::max<double>,bind(get<0>,_2),_1)); In other words, I would like the functionality of select1st with std::pair. Thanks, Jimmy.
7268
Age (days ago)
7268
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jim Pritts