Boost logo

Boost Users :

From: Graham Reitz (graham.cpp_at_[hidden])
Date: 2007-08-13 18:50:16


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


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