This saves three instructions on AMD GPUs. Dunno about Nvidia.
std::any_of
std::find
Common::Contains
std::none_of