[boost-users][tuple, bind] binding tuple element

10 Jun
2008
10 Jun
'08
3:40 a.m.
Hello, Given a vector of tuples, like this: vector<tuple<int, std::string> > tuples_; I want create a binder to find a tuple by one of its "attributes". If it would be a struct: struct Tuple { int id_; string name_; }; ...I'd use it like this: find_if(tuples_.begin(), tuples_.end(), bind(&Tuple::name_, _1) == "kuku"); How can bind tuples::get<1>() function? Thanks a lot, Igor'.

10 Jun
10 Jun
7:40 a.m.
AMDG Igor R wrote:
How can bind tuples::get<1>() function?
http://lists.boost.org/Archives/boost/2008/06/138361.php In Christ, Steven Watanabe
6218
Age (days ago)
6218
Last active (days ago)
1 comments
2 participants
participants (2)
-
Igor R
-
Steven Watanabe