Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2024. The current version is 1.89.0.
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());