#include <algorithm>
#include <iostream>
#include <vector>
int main() {
std::vector<int> vec = { 2, 4, 6, 8, 12, 18, 20, 24 };
if (std::none_of(vec.cbegin(), vec.cend(), std::bind(std::modulus<>(),
std::placeholders::_1, 2))) {
std::cout << "None of the numbers are odd";
}
}
/*
run:
None of the values are odd
*/