...one of the most highly regarded and expertly designed C++ library projects in the world. — Herb Sutter and Andrei Alexandrescu, C++ Coding Standards
...one of the most highly regarded and expertly designed C++ library projects in the world.
boost::compute::partition
// In header: <boost/compute/algorithm/partition.hpp> template<typename Iterator, typename UnaryPredicate> Iterator partition(Iterator first, Iterator last, UnaryPredicate predicate, command_queue & queue = system::default_queue());
Разделяет элементы в диапазоне [первый, последний] в соответствии с прецедентом. Порядок элементов не должен быть сохранен.
первый
последний
прецедентом
См. также:
is_partitioned() and stable_partition()
Статья Function template partition раздела Chapter 1. Boost.Compute Reference может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
:: Главная :: Reference ::
реклама