How to search STL vector for specific element value? Do I have to use foreach?Anonym2691308/23/2007 10:21 AM Report AnswersAdd a answer ▾ Anonymtoday 09:33 PM Answer to the question Sources Insert: Picture Discussion Anonym2698108/23/2007 11:39 PM ReportUse STL find(): #include <vector> #include <algorithm> elm = find(vect.begin(), vect.end(), val); Add a question comment ▾ Anonymtoday 09:33 PM
Anonym2698108/23/2007 11:39 PM ReportUse STL find(): #include <vector> #include <algorithm> elm = find(vect.begin(), vect.end(), val);