![]() |
Home | Libraries | People | FAQ | More |
boost::compute::stable_partition — Partitioning algorithm.
// In header: <boost/compute/algorithm/stable_partition.hpp> template<typename Iterator, typename UnaryPredicate> Iterator stable_partition(Iterator first, Iterator last, UnaryPredicate predicate, command_queue & queue = system::default_queue());
Partitions the elements in the range [first
, last
) according to predicate
. The order of the elements is preserved.
Space complexity: \Omega(3n)
See Also:
is_partitioned() and partition()
Parameters: |
|
||||||||
Returns: |
Iterator pointing to end of true values |