#include <algorithm>
#include <iostream>
#include <vector>
int main(void)
{
std::vector<int> vec = {5, 3, 4, 6, 8, 2, 10, 1, 13};
std::vector<int>::iterator it = std::find_if_not(vec.begin(), vec.end(), [](int i) {return i % 2;});
std::cout << "The first even value is: " << *it;
}
/*
run:
The first even value is: 4
*/