Function template any_of
boost::compute::any_of
Synopsis
template<typename InputIterator, typename UnaryPredicate>
bool any_of(InputIterator first, InputIterator last,
UnaryPredicate predicate,
command_queue & queue = system::default_queue());Description
Возвращает true, если predicate возвращает true для любого из элементов в диапазоне [first, last.
Например, чтобы проверить, содержит ли вектор какие-либо отрицательные значения:
См. также:
all_of(), none_of()