With one of the following:
* A range-based for loop and an if statement.
* Repeated calls to std::find_if.
* Another list-like collection and a call to std::copy_if.
If you want more help, you'll need to be more specific, and preferably show that you've already tried to solve the problem on your own.