How to find out if an item is present in a std::vector?
You can use std::find from <algorithm>: This returns a bool (true if present, false otherwise). With your example:
You can use std::find from <algorithm>: This returns a bool (true if present, false otherwise). With your example: