Given foo
which is a vector
I want to evaluate it's contents with all_of
. But all I'm really trying to check is that each element evaluates to true
.
I can do this by using logical_not
and none_of
but I would rather not use double negatives, and it feels dumb to write a lambda: [](const auto param) -> bool { return param; }
Does the standard provide me a functor that does what I want?
Aucun commentaire:
Enregistrer un commentaire