...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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());