|
-
December 6th, 2011, 06:22 PM
#4
Re: adding to vector of vector<int>, check if element already present
 Originally Posted by LMHmedchem
I don't seem to know how to evaluate if the iterator indicates that it found a match.
Use std::find_if(), not std::find().
Then you check the return iterator is equal to check_path.end(). If it is, then the item was not found.
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|