Engineers Sprint Ahead, but Don’t Underestimate the Poets
nytimes.com1 pointsby willdearden0 comments
#include <algorithm>
template <typename T>
bool even(T n)
{
bool is_even{true}, is_odd{false};
for (; n--;)
{
std::swap(is_even, is_odd);
}
return is_even;
}