...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_copy
// In header: <boost/compute/algorithm/partition_copy.hpp> template<typename InputIterator, typename OutputIterator1, typename OutputIterator2, typename UnaryPredicate> std::pair< OutputIterator1, OutputIterator2 > partition_copy(InputIterator first, InputIterator last, OutputIterator1 first_true, OutputIterator2 first_false, UnaryPredicate predicate, command_queue & queue = system::default_queue());