
13 Aug
2007
13 Aug
'07
4:50 p.m.
typedef boost::tuples::tuple<int,double> some_tuple; std::vector<some_tuple> vec_of_some_tuples; // ... stuff some data into the vector // ... search for a specific int in the vector of some_tuple What would be a good method, using an stl algorithm, to search through the vector above to match only the int portion of the tuple (ignoring the double)? Thanks, Graham